SPFeature.DefinitionId property

Gets the GUID that identifies the Feature definition.

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

Syntax

'Declaration
Public ReadOnly Property DefinitionId As Guid
    Get
'Usage
Dim instance As SPFeature
Dim value As Guid

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

Property value

Type: System.Guid
A GUID that identifies the SPFeatureDefinition object that provides the definition for the Feature.

Remarks

The value of this property is the same as the value of the Id property for the underlying Feature definition. You can use the GUID returned by the DefinitionId property as an index into the SPFeatureDefinitionCollection.Item[Guid] property of the collection returned by the SPFarm.FeatureDefinitions property.

See also

Reference

SPFeature class

SPFeature members

Microsoft.SharePoint namespace

Definition

Id