Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
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 : System.Int32
L'ID d'éléments spécifiant la hiérarchie sur lequel la commande doit être exécutée.
- command
Type : Microsoft.VisualStudio.Data.OleCommand
OLE commande à exécuter.
- executionOption
Type : Microsoft.VisualStudio.Data.OleCommandExecutionOption
OLE une option d'exécution.
- arguments
Type : System.Object
Arguments attendus par la commande.
Valeur de retour
Type : System.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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.