Share via


SPFeatureDefinition.Id property

Gets or sets the Guid that is associated with the object.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property Id As Guid
    Get
'Usage
Dim instance As SPFeatureDefinition
Dim value As Guid

value = instance.Id
public Guid Id { get; }

Property value

Type: System.Guid
Returns a Guid object that identifies the SPFeature object.

Exceptions

Exception Condition
ArgumentException

Null Guid is not allowed.

Remarks

The feature can be activated or deactivated at a given scope.

See also

Reference

SPFeatureDefinition class

SPFeatureDefinition members

Microsoft.SharePoint.Administration namespace

Name

Other resources

How to: Create a Simple Feature

Working with Features