共用方式為


SPFarm.GetFeatureDefinitionsByVersion method

取得指定的相容性層級的功能定義集合。

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

Syntax

'宣告
Public Function GetFeatureDefinitionsByVersion ( _
    compatibilityLevel As Integer _
) As List(Of SPFeatureDefinition)
'用途
Dim instance As SPFarm
Dim compatibilityLevel As Integer
Dim returnValue As List(Of SPFeatureDefinition)

returnValue = instance.GetFeatureDefinitionsByVersion(compatibilityLevel)
public List<SPFeatureDefinition> GetFeatureDefinitionsByVersion(
    int compatibilityLevel
)

參數

傳回值

Type: System.Collections.Generic.List<SPFeatureDefinition>
SPFeatureDefintion 物件的特定的相容性的清單層級的伺服器陣列中目前所安裝。

備註

它會傳回呈現 ; 如果指定的相容性層級的功能否則,它會以相同的功能識別碼為基礎的舊版相容性等級後援。例如: 如果我們已為 14 與 15,戰技 2 feat1 讓 14 與 15,GetFeatureDefinitions(15) 會針對 feat3 傳回 (feat1、 feat2、 feat3) ;GetFeatureDefinitions(14) 會傳回 (feat1,feat2)

請參閱

參照

SPFarm class

SPFarm members

Microsoft.SharePoint.Administration namespace