SPSite.QueryFeatures 方法 (Guid)

Gets a collection of the features deployed in this site collection that have a specific definition identifier.

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

语法

声明
Public Function QueryFeatures ( _
    featureId As Guid _
) As SPFeatureQueryResultCollection
用法
Dim instance As SPSite
Dim featureId As Guid
Dim returnValue As SPFeatureQueryResultCollection

returnValue = instance.QueryFeatures(featureId)
public SPFeatureQueryResultCollection QueryFeatures(
    Guid featureId
)

参数

  • featureId
    类型:System.Guid

    The value of the DefinitionId property of an SPFeature object. Only features that have this definition identifier are included.

返回值

类型:Microsoft.SharePoint.SPFeatureQueryResultCollection
An enumerable collection of SPFeature objects.

另请参阅

引用

SPSite 类

SPSite 成员

QueryFeatures 重载

Microsoft.SharePoint 命名空间