Metodo DataViewCommandHandler.ExecuteCommand (array<Int32[], OleCommand, OleCommandExecutionOption, Object)
Causa il comando specificato eseguire negli elementi.
Spazio dei nomi: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Sintassi
'Dichiarazione
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[]
Parametri
itemIds
Tipo: array<Int32[]Matrice di identificatori per gli elementi nella gerarchia di visualizzazione dati in cui questo comando deve essere richiamato.
command
Tipo: Microsoft.VisualStudio.Data.OleCommandl'oggetto OleCommand che rappresenta il comando richiamare.
executionOption
Tipo: Microsoft.VisualStudio.Data.OleCommandExecutionOptionQualsiasi istanza di oggetto OleCommandExecutionOption che rappresenta le opzioni del comando richiamato.
arguments
Tipo: ObjectUn oggetto che rappresenta gli argomenti al comando.
Valore restituito
Tipo: array<Object[]
Restituisce una matrice di oggetti che rappresenta i valori restituiti dai comandi specificati.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | Il parametro command e/o itemId è null. |
ArgumentException | Il parametro itemId non è valido. |
NotImplementedException | Questo gestore comando non implementa il comando specificato. |
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.