Compartilhar 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)
Available in Sandboxed Solutions: No

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