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 either all features in the Web service at the specified scope that need an upgrade, or all features that do not.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function QueryFeatures ( _
scope As SPFeatureScope, _
needsUpgrade As Boolean _
) As SPFeatureQueryResultCollection
'Usage
Dim instance As SPWebService
Dim scope As SPFeatureScope
Dim needsUpgrade As Boolean
Dim returnValue As SPFeatureQueryResultCollection
returnValue = instance.QueryFeatures(scope, _
needsUpgrade)
public SPFeatureQueryResultCollection QueryFeatures(
SPFeatureScope scope,
bool needsUpgrade
)
Parameters
scope
Type: Microsoft.SharePoint.SPFeatureScopeThe scope of features to get.
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 at the specified scope that have a specific needsUpgrade state.