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.Guid

    The ID of the features to be returned.

  • featureVersion
    Type: System.Version

    The 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.

See also

Reference

SPContentDatabase class

SPContentDatabase members

QueryFeatures overload

Microsoft.SharePoint.Administration namespace