共用方式為


SPFeaturePropertyCollection class

表示SPFeatureProperty物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.SPFeaturePropertyCollection

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

Syntax

'宣告
Public NotInheritable Class SPFeaturePropertyCollection _
    Implements IEnumerable
'用途
Dim instance As SPFeaturePropertyCollection
public sealed class SPFeaturePropertyCollection : IEnumerable

備註

使用SPFeatureMicrosoft.SharePoint.Administration.SPFeatureDefinition類別的Properties屬性來取得屬性集合的功能或功能定義。若要建立屬性的功能,使用SPFeatureProperty建構函式來建立屬性,並使用Add方法將屬性加入至功能屬性的集合。

使用索引子來從集合傳回單一屬性。例如,如果集合指派給一個名為 myProperties 變數,也應 C# 或 myProperties (index) 在 Visual Basic.NET 中,其中index是集合中功能的索引數目或功能名稱中使用 myProperties [index]。

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.

請參閱

參照

SPFeaturePropertyCollection members

Microsoft.SharePoint namespace