SPSite.QueryFeatures method (Guid)

Gets a collection of the features deployed in this site collection that have a specific definition identifier.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPFeatureQueryResultCollection QueryFeatures(
	Guid featureId
)

Parameters

featureId
Type: System.Guid

The value of the DefinitionId property of an SPFeature object. Only features that have this definition identifier are included.

Return value

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
An enumerable collection of SPFeature objects.
Show: