次の方法で共有


SPFeaturePropertyCollection class

Represents a collection of SPFeatureProperty objects.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.SPFeaturePropertyCollection

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

Syntax

'Declaration
Public NotInheritable Class SPFeaturePropertyCollection _
    Implements IEnumerable
'Usage
Dim instance As SPFeaturePropertyCollection
public sealed class SPFeaturePropertyCollection : IEnumerable

Remarks

Use the Properties property of the SPFeature or Microsoft.SharePoint.Administration.SPFeatureDefinition class to get the collection of properties for the Feature or Feature definition. To create a property for Feature, use the SPFeatureProperty constructor to create the property, and use the Add method to add the property to the collection of Feature properties.

Use an indexer to return a single property from the collection. For example, if the collection is assigned to a variable named myProperties, use myProperties[index] in C#, or myProperties(index) in Visual Basic .NET, where index is the index number of the Feature in the collection or the name of the Feature.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPFeaturePropertyCollection members

Microsoft.SharePoint namespace