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.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
- Type: System.Guid
- 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 valueType: Microsoft.SharePoint.SPFeatureQueryResultCollection
An enumerable collection of SPFeature objects.