Command.Action Propiedad

Definición

Obtiene o establece para CommandLineAction el objeto Command. El controlador representa la acción que se realizará cuando se invoque el 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

Valor de propiedad

Comentarios

Use una de las SetAction(Action<ParseResult>) sobrecargas para construir un controlador.

Si no se especifica el controlador, se generarán errores del analizador para la entrada de la línea de comandos que invoca este comando.

Se aplica a