Metodo DataViewHierarchyAccessor.ExecuteCommand (Int32, OleCommand, OleCommandExecutionOption, Object)
Esegue un comando OLE direttamente nella gerarchia di visualizzazione dati, con un'opzione specifica e gli argomenti di esecuzione.
Spazio dei nomi: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Sintassi
'Dichiarazione
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
Parametri
itemId
Tipo: Int32L'id elemento che specifica la gerarchia in cui il comando deve essere eseguito.
command
Tipo: Microsoft.VisualStudio.Data.OleCommandIl comando OLE eseguire.
executionOption
Tipo: Microsoft.VisualStudio.Data.OleCommandExecutionOptionUn'opzione di esecuzione OLE.
arguments
Tipo: ObjectArgomenti previsti dal comando.
Valore restituito
Tipo: Object
Restituisce il valore restituito dal comando.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | Il parametro command è null. |
ArgumentException | Il ID voce specificato non è valido. |
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.