共用方式為


SPWebApplication.QueryFeatures method (Guid, Version)

擷取目前的 Web 應用程式中的所有功能的網站或網站範圍設定,且具有指定之的功能及版本識別碼。

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

Syntax

'宣告
Public Function QueryFeatures ( _
    featureId As Guid, _
    featureVersion As Version _
) As SPFeatureQueryResultCollection
'用途
Dim instance As SPWebApplication
Dim featureId As Guid
Dim featureVersion As Version
Dim returnValue As SPFeatureQueryResultCollection

returnValue = instance.QueryFeatures(featureId, _
    featureVersion)
public SPFeatureQueryResultCollection QueryFeatures(
    Guid featureId,
    Version featureVersion
)

參數

  • featureId
    Type: System.Guid

    要擷取之功能的識別碼。

  • featureVersion
    Type: System.Version

    要擷取的版本的識別碼。

傳回值

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
會傳回SPFeatureQueryResultCollection物件,代表指定的範圍、 功能識別碼及版本識別碼的所有功能。

請參閱

參照

SPWebApplication class

SPWebApplication members

QueryFeatures overload

Microsoft.SharePoint.Administration namespace