SPContentDatabase.QueryFeatures 方法 (SPFeatureScope, Boolean)

获取所有站点或 Web 范围的功能,需要升级,或所有的不匹配,将根据指定。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.Boolean

    true包括功能,需要进行升级 ;false ,以便仅包括那些不需要升级。

返回值

类型:Microsoft.SharePoint.SPFeatureQueryResultCollection
站点或 Web 范围功能的筛选,通过needsUpgrade。

备注

scope必须是站点或 Web。

另请参阅

引用

SPContentDatabase 类

SPContentDatabase 成员

QueryFeatures 重载

Microsoft.SharePoint.Administration 命名空间