Share via


ICommandHandler.InvokeAsync(InvocationContext) Methode

Definition

Führt eine Aktion aus, wenn der zugeordnete Befehl in der Befehlszeile aufgerufen wird.

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)

Parameter

context
InvocationContext

Stellt Kontext für den Aufruf bereit, einschließlich Analyseergebnissen und Bindungsunterstützung.

Gibt zurück

Ein Wert, der als Exitcode für den Prozess verwendet werden kann.

Gilt für: