Freigeben über


IVsDataProvider.IsOperationSupported-Methode (CommandID, Object)

Bestimmt, ob ein Einzelgeschäft vom Anbieter in die aktuelle Umgebung unterstützt wird.

Namespace:  Microsoft.VisualStudio.Data.Core
Assembly:  Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)

Syntax

'Declaration
Function IsOperationSupported ( _
    command As CommandID, _
    context As Object _
) As Boolean
bool IsOperationSupported(
    CommandID command,
    Object context
)
bool IsOperationSupported(
    CommandID^ command, 
    Object^ context
)
abstract IsOperationSupported : 
        command:CommandID * 
        context:Object -> bool
function IsOperationSupported(
    command : CommandID, 
    context : Object
) : boolean

Parameter

  • command
    Typ: CommandID

    Ein Befehl, der den Vorgang identifiziert.

  • context
    Typ: Object

    Ein Objekt, das den Kontext darstellt, in dem der Vorgang vorhanden ist.

Rückgabewert

Typ: Boolean
true , wenn der Vorgang vom Anbieter in die aktuelle Umgebung unterstützt wird; andernfalls false.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Der command-Parameter ist nullein Nullverweis (Nothing in Visual Basic).

[<ANY>]

Die IsOperationSupported des DDEX- implementierung Anbieters hat eine Ausnahme aus.

Hinweise

Delegaten dieser Methode zur IsOperationSupported-Methode, Empty als Wert des Parameters source beginnt.

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsDataProvider Schnittstelle

IsOperationSupported-Überladung

Microsoft.VisualStudio.Data.Core-Namespace