共用方式為


SPWebApplication.QueryFeatures method (Guid)

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

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

Syntax

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

returnValue = instance.QueryFeatures(featureId)
public SPFeatureQueryResultCollection QueryFeatures(
    Guid featureId
)

參數

  • featureId
    Type: System.Guid

    要擷取之功能的識別碼。

傳回值

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

請參閱

參照

SPWebApplication class

SPWebApplication members

QueryFeatures overload

Microsoft.SharePoint.Administration namespace