Прочитать на английском Изменить

Поделиться через


Command.Handler Property

Definition

Gets or sets the ICommandHandler for the command. The handler represents the action that will be performed when the command is invoked.

public System.CommandLine.Invocation.ICommandHandler? Handler { get; set; }

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