共用方式為


CommandLineBuilderExtensions.CancelOnProcessTermination 方法

定義

啟用透過 在叫用期間傳遞至 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

適用於