ParseResult.InvokeAsync(InvocationConfiguration, CancellationToken) Methode

Definitie

Roept de juiste opdrachthandler aan voor een geparseerde opdrachtregelinvoer.

public System.Threading.Tasks.Task<int> InvokeAsync(System.CommandLine.InvocationConfiguration? configuration = default, System.Threading.CancellationToken cancellationToken = default);
member this.InvokeAsync : System.CommandLine.InvocationConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function InvokeAsync (Optional configuration As InvocationConfiguration = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

Parameters

configuration
InvocationConfiguration

De configuratie die wordt gebruikt om aanroepgedrag te definiƫren.

cancellationToken
CancellationToken

Een token dat kan worden gebruikt om een aanroep te annuleren.

Retouren

Een taak waarvan het resultaat kan worden gebruikt als afsluitcode voor processen.

Van toepassing op