다음을 통해 공유


SPFeature.DefinitionId Property

Gets the GUID that identifies the Feature definition.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableAttribute> _
Public ReadOnly Property DefinitionId As Guid
    Get
'Usage
Dim instance As SPFeature
Dim value As Guid

value = instance.DefinitionId
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableAttribute]
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