SPWebService.QueryFeatures method (Guid, Version)

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

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

Syntax

'Declaration
Public Function QueryFeatures ( _
    featureId As Guid, _
    featureVersion As Version _
) As SPFeatureQueryResultCollection
'Usage
Dim instance As SPWebService
Dim featureId As Guid
Dim featureVersion As Version
Dim returnValue As SPFeatureQueryResultCollection

returnValue = instance.QueryFeatures(featureId, _
    featureVersion)
public SPFeatureQueryResultCollection QueryFeatures(
    Guid featureId,
    Version featureVersion
)

Parameters

  • featureId
    Type: System.Guid

    Only includes features with this feature ID.

  • featureVersion
    Type: System.Version

    Only includes features with this version.

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

See also

Reference

SPWebService class

SPWebService members

QueryFeatures overload

Microsoft.SharePoint.Administration namespace