共用方式為


SPSite.QueryFeatures method (SPFeatureScope, Boolean)

取得在這個網站集合與網站或網頁範圍,其中包括唯一的功能或不需要升級中部署的功能集合。

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

Syntax

'宣告
Public Function QueryFeatures ( _
    scope As SPFeatureScope, _
    needsUpgrade As Boolean _
) As SPFeatureQueryResultCollection
'用途
Dim instance As SPSite
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
SPFeature 物件的可列舉集合。

請參閱

參照

SPSite class

SPSite members

QueryFeatures overload

Microsoft.SharePoint namespace