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
)
參數
scope
Type: Microsoft.SharePoint.SPFeatureScope列舉值,指定要套用該功能的範圍。這個方法的唯一有效範圍是Site和Web。
needsUpgrade
Type: System.Boolean如果true,只功能升級該需要會包含。如果false,只功能不需要升級,會包含。
傳回值
Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
SPFeature 物件的可列舉集合。