SPContentDatabase.QueryFeatures Method (Guid)

Gets all site- or Web-scoped features in this content database that have a specific feature ID.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function QueryFeatures ( _
    featureId As Guid _
) As SPFeatureQueryResultCollection
'Usage
Dim instance As SPContentDatabase
Dim featureId As Guid
Dim returnValue As SPFeatureQueryResultCollection

returnValue = instance.QueryFeatures(featureId)
public SPFeatureQueryResultCollection QueryFeatures(
    Guid featureId
)

Parameters

  • featureId
    Type: System.Guid

    The ID of the features to be returned.

Return Value

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
The site- or Web-scoped features that have the specified ID.

See Also

Reference

SPContentDatabase Class

SPContentDatabase Members

QueryFeatures Overload

Microsoft.SharePoint.Administration Namespace