共用方式為


SPSite.QueryFeatures method (Guid, Version)

取得具有特定的定義識別項和特定版本的功能部署此網站集合中的集合。

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

Syntax

'宣告
Public Function QueryFeatures ( _
    featureId As Guid, _
    featureVersion As Version _
) As SPFeatureQueryResultCollection
'用途
Dim instance As SPSite
Dim featureId As Guid
Dim featureVersion As Version
Dim returnValue As SPFeatureQueryResultCollection

returnValue = instance.QueryFeatures(featureId, _
    featureVersion)
public SPFeatureQueryResultCollection QueryFeatures(
    Guid featureId,
    Version featureVersion
)

參數

傳回值

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
SPFeature 物件的可列舉集合。

請參閱

參照

SPSite class

SPSite members

QueryFeatures overload

Microsoft.SharePoint namespace