Metodo DataViewCommandHandler.ExecuteCommand (Int32, OleCommand, OleCommandExecutionOption, Object)
Causa il comando specificato eseguire.
Spazio dei nomi: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Sintassi
'Dichiarazione
Public Overridable Function ExecuteCommand ( _
itemId As Integer, _
command As OleCommand, _
executionOption As OleCommandExecutionOption, _
arguments As Object _
) As Object
public virtual Object ExecuteCommand(
int itemId,
OleCommand command,
OleCommandExecutionOption executionOption,
Object arguments
)
public:
virtual Object^ ExecuteCommand(
int itemId,
OleCommand^ command,
OleCommandExecutionOption executionOption,
Object^ arguments
)
abstract ExecuteCommand :
itemId:int *
command:OleCommand *
executionOption:OleCommandExecutionOption *
arguments:Object -> Object
override 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'identificatore dell'elemento 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: Object
Restituisce un oggetto che rappresenta il valore restituito dal comando specificato, che in genere alcuna operazione.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | Il parametro command è 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.