SPContentDatabase.QueryFeatures method (Guid, Version)
Gets all site- or Web-scoped features in the content database that have a specific feature ID and version.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function QueryFeatures ( _
featureId As Guid, _
featureVersion As Version _
) As SPFeatureQueryResultCollection
'Usage
Dim instance As SPContentDatabase
Dim featureId As Guid
Dim featureVersion As Version
Dim returnValue As SPFeatureQueryResultCollection
returnValue = instance.QueryFeatures(featureId, _
featureVersion)
public SPFeatureQueryResultCollection QueryFeatures(
Guid featureId,
Version featureVersion
)
Parameters
featureId
Type: System.GuidThe ID of the features to be returned.
featureVersion
Type: System.VersionThe version of the features to be returned.
Return value
Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
The site- or Web-scoped features that have the specified ID and version.