Edit

Share via


Command.Action Property

Definition

Gets or sets the CommandLineAction for the Command. The handler represents the action that will be performed when the Command is invoked.

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

Property Value

Remarks

Use one of the SetAction(Action<ParseResult>) overloads to construct a handler.

If the handler is not specified, parser errors will be generated for command line input that invokes this Command.

Applies to