HostingExtensions.UseCommandHandler<THandler>(Command) Method
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.
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