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

OLE exécute une commande sans arguments directement dans la hiérarchie de vue de données.

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 _
) As Object
public Object ExecuteCommand(
    int itemId,
    OleCommand command
)
public:
Object^ ExecuteCommand(
    int itemId, 
    OleCommand^ command
)
member ExecuteCommand : 
        itemId:int * 
        command:OleCommand -> Object
public function ExecuteCommand(
    itemId : int, 
    command : OleCommand
) : Object

Paramètres

  • itemId
    Type : Int32

    L'ID d'élément sur lequel la commande doit être exécutée.

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