DataViewHierarchyAccessor.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) |
Exécute une commande OLE sans arguments directement dans la hiérarchie de la vue de données. |
| ExecuteCommand(Int32, OleCommand, Object) |
Exécute une commande OLE sur la hiérarchie d’affichage de données avec des arguments. |
| ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object) |
Exécute une commande OLE directement sur la hiérarchie de la vue de données, avec une option d’exécution et des arguments spécifiques. |
ExecuteCommand(Int32, OleCommand)
Exécute une commande OLE sans arguments directement dans la hiérarchie de la vue de données.
public:
System::Object ^ ExecuteCommand(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command);
public object ExecuteCommand (int itemId, Microsoft.VisualStudio.Data.OleCommand command);
member this.ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand -> obj
Public Function ExecuteCommand (itemId As Integer, command As OleCommand) As Object
Paramètres
- itemId
- Int32
ID d’élément sur lequel la commande doit être exécutée.
- command
- OleCommand
Commande OLE à exécuter.
Retours
Retourne la valeur retournée par la commande.
Exceptions
Le paramètre command est null.
L’itemId spécifié n’est pas valide.
S’applique à
ExecuteCommand(Int32, OleCommand, Object)
Exécute une commande OLE sur la hiérarchie d’affichage de données avec des arguments.
public:
System::Object ^ ExecuteCommand(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command, System::Object ^ arguments);
public object ExecuteCommand (int itemId, Microsoft.VisualStudio.Data.OleCommand command, object arguments);
member this.ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand * obj -> obj
Public Function ExecuteCommand (itemId As Integer, command As OleCommand, arguments As Object) As Object
Paramètres
- itemId
- Int32
ID d’élément spécifiant la hiérarchie sur laquelle la commande doit être exécutée.
- command
- OleCommand
Commande OLE à exécuter.
- arguments
- Object
Arguments attendus par la commande.
Retours
Retourne la valeur retournée par la commande.
Exceptions
Le paramètre command est null.
L’itemId spécifié n’est pas valide.
S’applique à
ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object)
Exécute une commande OLE directement sur la hiérarchie de la vue de données, avec une option d’exécution et des arguments spécifiques.
public:
System::Object ^ ExecuteCommand(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command, Microsoft::VisualStudio::Data::OleCommandExecutionOption executionOption, System::Object ^ arguments);
public object ExecuteCommand (int itemId, Microsoft.VisualStudio.Data.OleCommand command, Microsoft.VisualStudio.Data.OleCommandExecutionOption executionOption, object arguments);
member this.ExecuteCommand : int * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandExecutionOption * obj -> obj
Public Function ExecuteCommand (itemId As Integer, command As OleCommand, executionOption As OleCommandExecutionOption, arguments As Object) As Object
Paramètres
- itemId
- Int32
ID d’élément spécifiant la hiérarchie sur laquelle la commande doit être exécutée.
- command
- OleCommand
Commande OLE à exécuter.
- executionOption
- OleCommandExecutionOption
Option d’exécution OLE.
- arguments
- Object
Arguments attendus par la commande.
Retours
Retourne la valeur retournée par la commande.
Exceptions
Le paramètre command est null.
L’itemId spécifié n’est pas valide.