Command.Action プロパティ

定義

コマンドの CommandLineAction を取得または設定します。 ハンドラーは、コマンドが呼び出されたときに実行されるアクションを表します。

public:
 property System::CommandLine::Invocation::CommandLineAction ^ Action { System::CommandLine::Invocation::CommandLineAction ^ get(); void set(System::CommandLine::Invocation::CommandLineAction ^ value); };
public System.CommandLine.Invocation.CommandLineAction? Action { get; set; }
member this.Action : System.CommandLine.Invocation.CommandLineAction with get, set
Public Property Action As CommandLineAction

プロパティ値

注釈

ハンドラーを構築するには、 SetAction(Action<ParseResult>) オーバーロードのいずれかを使用します。

ハンドラーが指定されていない場合、このコマンドを呼び出すコマンド ライン入力に対してパーサー エラーが生成されます。

適用対象