This topic has not yet been rated - Rate this topic

SPWebService.QueryFeatures Method (Guid, Boolean)

SharePoint 2010

Gets all features in the Web service that have a specific feature ID and upgrade state.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public SPFeatureQueryResultCollection QueryFeatures(
	Guid featureId,
	bool needsUpgrade
)

Parameters

featureId
Type: System.Guid
Only includes features with this feature ID.
needsUpgrade
Type: System.Boolean
If true, then only features that need to be upgraded are included. Otherwise, if false, then only features that do not need to be upgraded are included.

Return Value

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
An SPFeatureQueryResultCollection object for iterating over all features in the Web service that have a specific feature ID and needsUpgrade state.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ