Partilhar via


SPFeatureDefinitionCollection.Item Property (String)

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

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    featureName As String _
) As SPFeatureDefinition
    Get
'Usage
Dim instance As SPFeatureDefinitionCollection
Dim featureName As String
Dim value As SPFeatureDefinition

value = instance(featureName)
public SPFeatureDefinition this[
    string featureName
] { get; }

Parameters

  • featureName
    Type: System.String

    A string 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