Partage via


ICommandHandler.InvokeAsync(InvocationContext) Méthode

Définition

Effectue une action lorsque la commande associée est appelée sur la ligne de commande.

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)

Paramètres

context
InvocationContext

Fournit le contexte pour l’appel, y compris les résultats de l’analyse et la prise en charge de la liaison.

Retours

Valeur qui peut être utilisée comme code de sortie pour le processus.

S’applique à