Command.Action Proprietà

Definizione

Ottiene o imposta l'oggetto CommandLineAction per l'oggetto Command. Il gestore rappresenta l'azione che verrà eseguita quando viene richiamato il comando.

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

Valore della proprietà

Commenti

Usare uno degli SetAction(Action<ParseResult>) overload per costruire un gestore.

Se il gestore non è specificato, verranno generati errori del parser per l'input della riga di comando che richiama questo comando.

Si applica a