Command.Handler Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the ICommandHandler for the command. The handler represents the action that will be performed when the command is invoked.
public:
property System::CommandLine::Invocation::ICommandHandler ^ Handler { System::CommandLine::Invocation::ICommandHandler ^ get(); void set(System::CommandLine::Invocation::ICommandHandler ^ value); };
public System.CommandLine.Invocation.ICommandHandler? Handler { get; set; }
member this.Handler : System.CommandLine.Invocation.ICommandHandler with get, set
Public Property Handler As ICommandHandler
Property Value
Remarks
Use one of the SetHandler(Command, Action) overloads to construct a handler.
If the handler is not specified, parser errors will be generated for command line input that invokes this command.
Applies to
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.