Share via


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)
Available in Sandboxed Solutions: No

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