DataViewCommandHandler.ExecuteCommand Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object) |
Provoque l’exécution de la commande spécifiée. |
| ExecuteCommand(Int32[], OleCommand, OleCommandExecutionOption, Object) |
Provoque l’exécution de la commande spécifiée sur plusieurs éléments. |
ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object)
Provoque l’exécution de la commande spécifiée.
public:
virtual System::Object ^ ExecuteCommand(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command, Microsoft::VisualStudio::Data::OleCommandExecutionOption executionOption, System::Object ^ arguments);
public virtual object ExecuteCommand (int itemId, Microsoft.VisualStudio.Data.OleCommand command, Microsoft.VisualStudio.Data.OleCommandExecutionOption executionOption, object arguments);
abstract member ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandExecutionOption * obj -> obj
override this.ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandExecutionOption * obj -> obj
Public Overridable Function ExecuteCommand (itemId As Integer, command As OleCommand, executionOption As OleCommandExecutionOption, arguments As Object) As Object
Paramètres
- itemId
- Int32
Identificateur de l’élément dans la hiérarchie d’affichage de données sur laquelle cette commande doit être appelée.
- command
- OleCommand
OleCommandObjet représentant la commande à appeler.
- executionOption
- OleCommandExecutionOption
Toute OleCommandExecutionOption instance d’objet représentant des options sur la commande appelée.
- arguments
- Object
Objet représentant les arguments de la commande.
Retours
Retourne une instance d’objet qui représente la valeur retournée par la commande spécifiée, qui n’est généralement rien.
Exceptions
Le paramètre command est null.
Le paramètre itemId n'est pas valide.
Ce gestionnaire de commandes n’implémente pas la commande spécifiée.
S’applique à
ExecuteCommand(Int32[], OleCommand, OleCommandExecutionOption, Object)
Provoque l’exécution de la commande spécifiée sur plusieurs éléments.
public:
virtual cli::array <System::Object ^> ^ ExecuteCommand(cli::array <int> ^ itemIds, Microsoft::VisualStudio::Data::OleCommand ^ command, Microsoft::VisualStudio::Data::OleCommandExecutionOption executionOption, System::Object ^ arguments);
public virtual object[] ExecuteCommand (int[] itemIds, Microsoft.VisualStudio.Data.OleCommand command, Microsoft.VisualStudio.Data.OleCommandExecutionOption executionOption, object arguments);
abstract member ExecuteCommand : int[] * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandExecutionOption * obj -> obj[]
override this.ExecuteCommand : int[] * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandExecutionOption * obj -> obj[]
Public Overridable Function ExecuteCommand (itemIds As Integer(), command As OleCommand, executionOption As OleCommandExecutionOption, arguments As Object) As Object()
Paramètres
- itemIds
- Int32[]
Tableau d’identificateurs pour les éléments de la hiérarchie d’affichage de données sur lesquels cette commande doit être appelée.
- command
- OleCommand
OleCommandObjet représentant la commande à appeler.
- executionOption
- OleCommandExecutionOption
Toute OleCommandExecutionOption instance d’objet représentant des options sur la commande appelée.
- arguments
- Object
Objet représentant les arguments de la commande.
Retours
- Object[]
Retourne un tableau d’objets représentant les valeurs retournées par les commandes spécifiées.
Exceptions
Le itemId paramètre and/or command a la valeur null.
Le paramètre itemId n'est pas valide.
Ce gestionnaire de commandes n’implémente pas la commande spécifiée.