IVsDataProvider.IsOperationSupported, méthode (CommandID, Object)

Détermine si une opération spécifique en charge par le fournisseur dans l'environnement actuel.

Espace de noms :  Microsoft.VisualStudio.Data.Core
Assembly :  Microsoft.VisualStudio.Data.Core (dans Microsoft.VisualStudio.Data.Core.dll)

Syntaxe

'Déclaration
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

Paramètres

  • context
    Type : System.Object
    Un objet qui représente le contexte dans lequel l'exécution existe.

Valeur de retour

Type : System.Boolean
true si l'opération est prise en charge par le fournisseur dans l'environnement actuel ; sinon, false.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre command est nullune référence null (Nothing en Visual Basic).

[<ANY>]

L'implémentation de l' IsOperationSupported du fournisseur de DDEX a levé une exception.

Notes

Délégués de cette méthode à la méthode d' IsOperationSupported , en passant Empty comme valeur du paramètre d' source .

Sécurité .NET Framework

Voir aussi

Référence

IVsDataProvider Interface

IsOperationSupported, surcharge

Microsoft.VisualStudio.Data.Core, espace de noms