Export (0) Print
Expand All

SPSite.QueryFeatures method (Guid, Boolean)

Gets a collection of the features deployed in this site collection that have a specific definition identifier, including only features that either do or do not need to be upgraded.

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

public SPFeatureQueryResultCollection QueryFeatures(
	Guid featureId,
	bool needsUpgrade
)

Parameters

featureId
Type: System.Guid

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

needsUpgrade
Type: System.Boolean

If true, only features that need to be upgraded are included. If false, only features that do not need to be upgraded are included.

Return value

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