共用方式為


SPFeatureDefinitionCollection class

代表SPFeatureDefinition物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPFeatureDefinition>
    Microsoft.SharePoint.Administration.SPPersistedChildCollection<SPFeatureDefinition>
      Microsoft.SharePoint.Administration.SPFeatureDefinitionCollection

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

Syntax

'宣告
<GuidAttribute("E8FDC5F0-9083-457f-AF33-5FB236AAB658")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPFeatureDefinitionCollection _
    Inherits SPPersistedChildCollection(Of SPFeatureDefinition)
'用途
Dim instance As SPFeatureDefinitionCollection
[GuidAttribute("E8FDC5F0-9083-457f-AF33-5FB236AAB658")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPFeatureDefinitionCollection : SPPersistedChildCollection<SPFeatureDefinition>

備註

使用SPFarm類別之FeatureDefinitions屬性來取得安裝在伺服器陣列中的功能定義集合。

使用SPSite類別之FeatureDefinitions屬性來取得的網站集合中已安裝的功能定義集合。

若要新增至集合中的功能定義,使用其中一個SPFeatureDefinitionCollection類別的Add方法。

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.

請參閱

參照

SPFeatureDefinitionCollection members

Microsoft.SharePoint.Administration namespace