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)
Available in Sandboxed Solutions: No
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.GuidOnly includes features with this feature ID.
featureVersion
Type: System.VersionOnly 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.