HostingExtensions.UseCommandHandler<THandler>(Command) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
類型參數
- THandler
參數
- command
- Command