Share via


SPWebService.QueryFeaturesInAllWebServices method (Guid, Version)

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

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

Syntax

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

returnValue = SPWebService.QueryFeaturesInAllWebServices(featureId, _
    featureVersion)
public static SPFeatureQueryResultCollection QueryFeaturesInAllWebServices(
    Guid featureId,
    Version featureVersion
)

Parameters

  • featureId
    Type: System.Guid

    Includes only those features that have this feature ID.

  • featureVersion
    Type: System.Version

    Includes only those features that have this version.

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 version.

See also

Reference

SPWebService class

SPWebService members

QueryFeaturesInAllWebServices overload

Microsoft.SharePoint.Administration namespace