Share via


DataViewCommandHandler.ExecuteCommand, méthode (Int32, OleCommand, OleCommandExecutionOption, Object)

Provoque la commande spécifiée d'exécuter.

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

Syntaxe

'Déclaration
Public Overridable Function ExecuteCommand ( _
    itemId As Integer, _
    command As OleCommand, _
    executionOption As OleCommandExecutionOption, _
    arguments As Object _
) As Object
public virtual Object ExecuteCommand(
    int itemId,
    OleCommand command,
    OleCommandExecutionOption executionOption,
    Object arguments
)
public:
virtual Object^ ExecuteCommand(
    int itemId, 
    OleCommand^ command, 
    OleCommandExecutionOption executionOption, 
    Object^ arguments
)
abstract ExecuteCommand : 
        itemId:int * 
        command:OleCommand * 
        executionOption:OleCommandExecutionOption * 
        arguments:Object -> Object  
override ExecuteCommand : 
        itemId:int * 
        command:OleCommand * 
        executionOption:OleCommandExecutionOption * 
        arguments:Object -> Object
public function ExecuteCommand(
    itemId : int, 
    command : OleCommand, 
    executionOption : OleCommandExecutionOption, 
    arguments : Object
) : Object

Paramètres

  • itemId
    Type : Int32

    L'identificateur de l'élément dans la hiérarchie de vue de données sur laquelle cette commande doit être appelée.

  • arguments
    Type : Object

    Un objet qui représente des arguments à la commande.

Valeur de retour

Type : Object
Retourne une instance de l'objet qui représente la valeur retournée par la commande spécifiée, qui n'est généralement rien.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre command est null.

ArgumentException

Le paramètre itemId n'est pas valide.

NotImplementedException

Ce gestionnaire de commandes n'implémente pas la commande spécifiée.

Sécurité .NET Framework

Voir aussi

Référence

DataViewCommandHandler Classe

ExecuteCommand, surcharge

Microsoft.VisualStudio.Data, espace de noms