Partilhar via


SPWebService.QueryFeaturesInAllWebServices Method (SPFeatureScope, Boolean)

Gets all of the features in all Web services at the specified scope that need an upgrade, or gets all of the features that do not.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

returnValue = SPWebService.QueryFeaturesInAllWebServices(scope, _
    needsUpgrade)
public static SPFeatureQueryResultCollection QueryFeaturesInAllWebServices(
    SPFeatureScope scope,
    bool needsUpgrade
)

Parameters

  • 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 the Web service at the specified scope that have a specific needsUpgrade state.

See Also

Reference

SPWebService Class

SPWebService Members

QueryFeaturesInAllWebServices Overload

Microsoft.SharePoint.Administration Namespace