Command.Action Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.