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.
Retrieves all features in the current Web application that are scoped to Site or Web and have a specific needsUpgrade state.
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 SPWebApplication
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 the features to be retrieved. The supported scopes are limited to Site and Web.
needsUpgrade
Type: System.Booleantrue indicates that only the features that require upgrade are included; otherwise, false indicates that features that do not require upgrade are also included.
Return Value
Type: Microsoft.SharePoint.SPFeatureQueryResultCollection
Returns an SPFeatureQueryResultCollection object that represents all features of a given scope and of the specified status.