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
)
參數
scope
Type: Microsoft.SharePoint.SPFeatureScope若要取得的功能的範圍。
needsUpgrade
Type: System.Boolean如果true,則必須升級的功能都包含在內。否則,如果false,然後只功能 (英文) 不需要升級都包含在內。
傳回值
Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
逐一查看所有功能在指定範圍的 Web 服務中具有特定needsUpgrade狀態SPFeatureQueryResultCollection物件。