共用方式為


SPWebService.QueryFeatures method (SPFeatureScope, Boolean)

取得 Web 服務中的其中一個的所有功能,在指定的範圍需要升級或未執行的所有功能。

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

Syntax

'宣告
Public Function QueryFeatures ( _
    scope As SPFeatureScope, _
    needsUpgrade As Boolean _
) As SPFeatureQueryResultCollection
'用途
Dim instance As SPWebService
Dim scope As SPFeatureScope
Dim needsUpgrade As Boolean
Dim returnValue As SPFeatureQueryResultCollection

returnValue = instance.QueryFeatures(scope, _
    needsUpgrade)
public SPFeatureQueryResultCollection QueryFeatures(
    SPFeatureScope scope,
    bool needsUpgrade
)

參數

  • needsUpgrade
    Type: System.Boolean

    如果true,則必須升級的功能都包含在內。否則,如果false,然後只功能 (英文) 不需要升級都包含在內。

傳回值

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
逐一查看所有功能在指定範圍的 Web 服務中具有特定needsUpgrade狀態SPFeatureQueryResultCollection物件。

請參閱

參照

SPWebService class

SPWebService members

QueryFeatures overload

Microsoft.SharePoint.Administration namespace