SPFeatureDefinitionCollection.Item property (Guid)

Gets the Feature definition with the specified GUID from the collection.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    featureId As Guid _
) As SPFeatureDefinition
    Get
'Usage
Dim instance As SPFeatureDefinitionCollection
Dim featureId As Guid
Dim value As SPFeatureDefinition

value = instance.Item(featureId)
public SPFeatureDefinition this[
    Guid featureId
] { get; }

Parameters

  • featureId
    Type: System.Guid

    A System.Guid that specifies the Feature definition.

Property value

Type: Microsoft.SharePoint.Administration.SPFeatureDefinition
An Microsoft.SharePoint.Administration.SPFeatureDefinition object that represents the feature definition.

See also

Reference

SPFeatureDefinitionCollection class

SPFeatureDefinitionCollection members

Item overload

Microsoft.SharePoint.Administration namespace