HostingExtensions.UseCommandHandler<THandler>(Command) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
Typparametrar
- THandler
Parametrar
- command
- Command