次の方法で共有


InvocationConfiguration.ProcessTerminationTimeout プロパティ

定義

呼び出し中にCommandLineActionに渡すことができるCancellationTokenを介したプロセス終了 (Ctrl + C、SIGINT、SIGTERM) のシグナル通知と処理を可能にする期間を取得または設定します。

public:
 property Nullable<TimeSpan> ProcessTerminationTimeout { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? ProcessTerminationTimeout { get; set; }
member this.ProcessTerminationTimeout : Nullable<TimeSpan> with get, set
Public Property ProcessTerminationTimeout As Nullable(Of TimeSpan)

プロパティ値

既定値は 2 秒です。

注釈

このプロパティが null に設定されている場合、終了要求は System.CommandLine によって処理されません。 その場合、プログラムの他の部分がハンドラーを追加しない限り、プロセスはすぐに終了します。

適用対象