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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableForceNewKeywordAttribute> _
Public ReadOnly Property Id As Guid
    Get
'Usage
Dim instance As SPFeatureDefinition
Dim value As Guid

value = instance.Id
[SubsetCallableForceNewKeywordAttribute]
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