Share via


DataViewCommandHandler.ExecuteCommand, méthode (array<Int32[], OleCommand, OleCommandExecutionOption, Object)

Provoque la commande spécifiée pour l'exécuter sur plusieurs éléments.

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

Syntaxe

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

Paramètres

  • itemIds
    Type : array<Int32[]

    Tableau d'identificateurs des éléments 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 : array<Object[]
Retourne un tableau d'objets représentant les valeurs retournées par les commandes spécifiées.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre d' itemId et/ou d' 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