Condividi tramite


Metodo IVsDataProvider.IsOperationSupported (CommandID, Object)

Determina se un'operazione specifica supportata dal provider nell'ambiente corrente.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Core
Assembly:  Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)

Sintassi

'Dichiarazione
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

Parametri

  • command
    Tipo: CommandID

    Un comando che identifica l'operazione.

  • context
    Tipo: Object

    Oggetto che rappresenta il contesto in cui l'operazione esiste.

Valore restituito

Tipo: Boolean
true se l'operazione è supportata dal provider nell'ambiente corrente; in caso contrario, false.

Eccezioni

Eccezione Condizione
ArgumentNullException

Il parametro command è nullriferimento null (Nothing in Visual Basic).

[<ANY>]

L'implementazione di IsOperationSupported del provider di DDEX viene generata un'eccezione.

Note

Delegati di questo metodo al metodo IsOperationSupported, passando Empty come valore del parametro source.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsDataProvider Interfaccia

Overload IsOperationSupported

Spazio dei nomi Microsoft.VisualStudio.Data.Core