SPWebApplication.QueryFeatures method (Guid, Boolean)
SharePoint 2013
Retrieves all features in the current Web application that are scoped to Site or Web and have the specified feature identifier and requirement for upgrade.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- featureId
- Type: System.Guid
Identifier of the features to be retrieved.
- needsUpgrade
- Type: System.Boolean
true indicates that only the features that require upgrade are included; otherwise, false indicates that features that do not require upgrade are also included.
Return value
Type: Microsoft.SharePoint.SPFeatureQueryResultCollectionReturns an SPFeatureQueryResultCollection object that represents all features of a given scope, identifier, and requirement for upgrade.