Command.Action Egenskap

Definition

Hämtar eller anger CommandLineAction för kommandot. Hanteraren representerar den åtgärd som ska utföras när kommandot anropas.

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

Egenskapsvärde

Kommentarer

Använd en av överlagringarna SetAction(Action<ParseResult>) för att konstruera en hanterare.

Om hanteraren inte har angetts genereras parsningsfel för kommandoradsindata som anropar det här kommandot.

Gäller för