共用方式為


SPWebService.QueryFeaturesInAllWebServices method (Guid, Boolean)

取得特定功能識別碼並升級狀態的所有 Web 服務的所有功能。

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

Syntax

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

returnValue = SPWebService.QueryFeaturesInAllWebServices(featureId, _
    needsUpgrade)
public static SPFeatureQueryResultCollection QueryFeaturesInAllWebServices(
    Guid featureId,
    bool needsUpgrade
)

參數

  • featureId
    Type: System.Guid

    包含僅有此功能識別碼的功能

  • needsUpgrade
    Type: System.Boolean

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

傳回值

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
逐一查看特定的功能識別碼和needsUpgrade狀態的所有 Web 服務中的所有功能SPFeatureQueryResultCollection物件。

請參閱

參照

SPWebService class

SPWebService members

QueryFeaturesInAllWebServices overload

Microsoft.SharePoint.Administration namespace