Condividi tramite


ICommandHandler.InvokeAsync(InvocationContext) Metodo

Definizione

Esegue un'azione quando il comando associato viene richiamato nella riga di comando.

public:
 System::Threading::Tasks::Task<int> ^ InvokeAsync(System::CommandLine::Invocation::InvocationContext ^ context);
public System.Threading.Tasks.Task<int> InvokeAsync (System.CommandLine.Invocation.InvocationContext context);
abstract member InvokeAsync : System.CommandLine.Invocation.InvocationContext -> System.Threading.Tasks.Task<int>
Public Function InvokeAsync (context As InvocationContext) As Task(Of Integer)

Parametri

context
InvocationContext

Fornisce il contesto per la chiamata, inclusi i risultati di analisi e il supporto dell'associazione.

Restituisce

Valore che può essere usato come codice di uscita per il processo.

Si applica a