ICommandHandler.InvokeAsync(InvocationContext) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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.