DataViewHierarchyAccessor.ExecuteCommand Méthode

Définition

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

Object

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

Object

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

Object

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 à