CommandLineBuilderExtensions.CancelOnProcessTermination 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
啟用透過 在叫用期間傳遞至 ICommandHandler 的信號處理進程終止CancellationToken。
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Builder::CommandLineBuilder ^ CancelOnProcessTermination(System::CommandLine::Builder::CommandLineBuilder ^ builder);
public static System.CommandLine.Builder.CommandLineBuilder CancelOnProcessTermination (this System.CommandLine.Builder.CommandLineBuilder builder);
static member CancelOnProcessTermination : System.CommandLine.Builder.CommandLineBuilder -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function CancelOnProcessTermination (builder As CommandLineBuilder) As CommandLineBuilder
參數
- builder
- CommandLineBuilder
命令行產生器。
傳回
的相同實例 CommandLineBuilder。