Share via


ICommandHandler.InvokeAsync(InvocationContext) メソッド

定義

関連付けられたコマンドがコマンド ラインで呼び出されたときにアクションを実行します。

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)

パラメーター

context
InvocationContext

解析結果やバインドのサポートなど、呼び出しのコンテキストを提供します。

戻り値

プロセスの終了コードとして使用できる値。

適用対象