Share via


SPWebService.QueryFeaturesInAllWebServices method (Guid, Boolean)

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

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

Syntax

'Declaration
Public Shared Function QueryFeaturesInAllWebServices ( _
    featureId As Guid, _
    needsUpgrade As Boolean _
) As SPFeatureQueryResultCollection
'Usage
Dim featureId As Guid
Dim needsUpgrade As Boolean
Dim returnValue As SPFeatureQueryResultCollection

returnValue = SPWebService.QueryFeaturesInAllWebServices(featureId, _
    needsUpgrade)
public static SPFeatureQueryResultCollection QueryFeaturesInAllWebServices(
    Guid featureId,
    bool needsUpgrade
)

Parameters

  • featureId
    Type: System.Guid

    Includes only those features that have this feature ID.

  • needsUpgrade
    Type: System.Boolean

    If true, includes only features that need to be upgraded. Otherwise, if false, includes only features that do not need to be upgraded.

Return value

Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
An SPFeatureQueryResultCollection object for iterating over all features in all Web services that have a specific feature ID and needsUpgrade state.

See also

Reference

SPWebService class

SPWebService members

QueryFeaturesInAllWebServices overload

Microsoft.SharePoint.Administration namespace