언어

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>) 하나를 사용하여 처리기를 생성합니다.

처리기를 지정하지 않으면 이 명령을 호출하는 명령줄 입력에 대해 파서 오류가 생성됩니다.

적용 대상