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
)
參數
featureId
Type: System.GuidSPFeature物件的 [ DefinitionId ] 屬性的值。包括的功能,此定義識別項。
featureVersion
Type: System.Version
傳回值
Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
SPFeature 物件的可列舉集合。