Nyelv

Command.Action Tulajdonság

Definíció

Lekéri vagy beállítja a CommandLineAction parancsot. A kezelő a parancs meghívásakor végrehajtandó műveletet jelöli.

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

Tulajdonság értéke

Megjegyzések

Használjon egy kezelőt a SetAction(Action<ParseResult>) túlterhelések egyikével.

Ha a kezelő nincs megadva, elemzési hibák jönnek létre a parancsot meghívó parancssori bemenethez.

A következőre érvényes: