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

Détermine si une opération spécifique est prise 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

  • command
    Type : CommandID

    Une commande qui identifie l'opération.

  • context
    Type : Object

    Objet qui représente le contexte dans lequel l'opération existe.

Valeur de retour

Type : 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 IsOperationSupported, en passant Empty comme valeur du paramètre source.

Sécurité .NET Framework

Voir aussi

Référence

IVsDataProvider Interface

IsOperationSupported, surcharge

Microsoft.VisualStudio.Data.Core, espace de noms