Condividi tramite


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: Int32

    L'identificatore dell'elemento nella gerarchia di visualizzazione dati in cui questo comando deve essere richiamato.

  • arguments
    Tipo: Object

    Un 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

Vedere anche

Riferimenti

DataViewCommandHandler Classe

Overload ExecuteCommand

Spazio dei nomi Microsoft.VisualStudio.Data