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

OLE exécute une commande directement dans la hiérarchie de vue de données, avec une option spécifique et les arguments d'exécution.

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

Syntaxe

'Déclaration
Public Function ExecuteCommand ( _
    itemId As Integer, _
    command As OleCommand, _
    executionOption As OleCommandExecutionOption, _
    arguments As Object _
) As Object
public Object ExecuteCommand(
    int itemId,
    OleCommand command,
    OleCommandExecutionOption executionOption,
    Object arguments
)
public:
Object^ ExecuteCommand(
    int itemId, 
    OleCommand^ command, 
    OleCommandExecutionOption executionOption, 
    Object^ arguments
)
member 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'ID d'éléments spécifiant la hiérarchie sur lequel la commande doit être exécutée.

  • arguments
    Type : Object

    Arguments attendus par la commande.

Valeur de retour

Type : Object
Retourne la valeur retournée par la commande.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre command est null.

ArgumentException

L'itemId spécifié n'est pas valide.

Sécurité .NET Framework

Voir aussi

Référence

DataViewHierarchyAccessor Classe

ExecuteCommand, surcharge

Microsoft.VisualStudio.Data, espace de noms