Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets all features in the Web service that have a specific feature ID and upgrade state.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function QueryFeatures ( _
featureId As Guid, _
needsUpgrade As Boolean _
) As SPFeatureQueryResultCollection
'Usage
Dim instance As SPWebService
Dim featureId As Guid
Dim needsUpgrade As Boolean
Dim returnValue As SPFeatureQueryResultCollection
returnValue = instance.QueryFeatures(featureId, _
needsUpgrade)
public SPFeatureQueryResultCollection QueryFeatures(
Guid featureId,
bool needsUpgrade
)
Parameters
featureId
Type: System.GuidOnly includes features with this feature ID.
needsUpgrade
Type: System.BooleanIf true, then only features that need to be upgraded are included. Otherwise, if false, then only features that do not need to be upgraded are included.
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 needsUpgrade state.