Compartilhar via


SPFeatureCollection.Item Property

Gets the Feature with the specified GUID from the collection.

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

Syntax

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

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

Parameters

  • featureId
    Type: System.Guid

    A System.Guid that identifies the Feature.

Property Value

Type: Microsoft.SharePoint.SPFeature
An SPFeature object that represents the Feature.

See Also

Reference

SPFeatureCollection Class

SPFeatureCollection Members

Microsoft.SharePoint Namespace