Freigeben über


SPWebApplication.QueryFeatures-Methode (SPFeatureScope, Boolean)

Ruft alle Features in der aktuellen Webanwendung, die sind bezogen auf Website oder und einen bestimmten needsUpgrade Zustand.

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

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
)

Parameter

  • needsUpgrade
    Typ: System.Boolean

    true gibt an, dass nur die Features, die ein Upgrade erforderlich enthalten sind. andernfalls gibt false an, dass Features, die keine Aktualisierung erforderlich ist ebenfalls enthalten sind.

Rückgabewert

Typ: Microsoft.SharePoint.SPFeatureQueryResultCollection
Gibt ein SPFeatureQueryResultCollection -Objekt, das alle Features von einem bestimmten Bereich und den angegebenen Status darstellt.

Siehe auch

Referenz

SPWebApplication Klasse

SPWebApplication-Member

QueryFeatures-Überladung

Microsoft.SharePoint.Administration-Namespace