共用方式為


SPContentDatabase.QueryFeatures method (SPFeatureScope, Boolean)

會取得所有網站或網站範圍的功能,必須升級,或所有的不要,如指定。

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 SPContentDatabase
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
網站或網站範圍功能如由needsUpgrade篩選。

備註

scope必須是網站或網頁。

請參閱

參照

SPContentDatabase class

SPContentDatabase members

QueryFeatures overload

Microsoft.SharePoint.Administration namespace