Edit

Share via


HostingExtensions.UseCommandHandler<THandler>(Command) Method

Definition

public:
generic <typename THandler>
 where THandler : System::CommandLine::Invocation::CommandLineAction[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Command ^ UseCommandHandler(System::CommandLine::Command ^ command);
public static System.CommandLine.Command UseCommandHandler<THandler>(this System.CommandLine.Command command) where THandler : System.CommandLine.Invocation.CommandLineAction;
static member UseCommandHandler : System.CommandLine.Command -> System.CommandLine.Command (requires 'Handler :> System.CommandLine.Invocation.CommandLineAction)
<Extension()>
Public Function UseCommandHandler(Of THandler As CommandLineAction) (command As Command) As Command

Type Parameters

THandler

Parameters

command
Command

Returns

Applies to