共用方式為


SPWebService.QueryFeaturesInAllWebServices method (SPFeatureScope, Boolean)

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

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

Syntax

'宣告
Public Shared Function QueryFeaturesInAllWebServices ( _
    scope As SPFeatureScope, _
    needsUpgrade As Boolean _
) As SPFeatureQueryResultCollection
'用途
Dim scope As SPFeatureScope
Dim needsUpgrade As Boolean
Dim returnValue As SPFeatureQueryResultCollection

returnValue = SPWebService.QueryFeaturesInAllWebServices(scope, _
    needsUpgrade)
public static SPFeatureQueryResultCollection QueryFeaturesInAllWebServices(
    SPFeatureScope scope,
    bool needsUpgrade
)

參數

  • needsUpgrade
    Type: System.Boolean

    如果true,包括必須升級的功能。否則,如果false,包括不需要升級的功能。

傳回值

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

請參閱

參照

SPWebService class

SPWebService members

QueryFeaturesInAllWebServices overload

Microsoft.SharePoint.Administration namespace