Command.Action Propriété

Définition

Obtient ou définit la CommandLineAction commande. Le gestionnaire représente l’action qui sera effectuée lorsque la commande est appelée.

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

Valeur de propriété

Remarques

Utilisez l’une des SetAction(Action<ParseResult>) surcharges pour construire un gestionnaire.

Si le gestionnaire n’est pas spécifié, les erreurs d’analyseur sont générées pour l’entrée de ligne de commande qui appelle cette commande.

S’applique à