Timeout.InfiniteTimeSpan フィールド

定義

TimeSpan パラメーターを受け取るメソッドの無限待機期間を指定するために使用される定数。

public: static initonly TimeSpan InfiniteTimeSpan;
public static readonly TimeSpan InfiniteTimeSpan;
[System.Runtime.InteropServices.ComVisible(false)]
public static readonly TimeSpan InfiniteTimeSpan;
 staticval mutable InfiniteTimeSpan : TimeSpan
[<System.Runtime.InteropServices.ComVisible(false)>]
 staticval mutable InfiniteTimeSpan : TimeSpan
Public Shared ReadOnly InfiniteTimeSpan As TimeSpan 

フィールド値

属性

注釈

timeoutTimeSpanなど、Thread.Sleep(TimeSpan)型のThread.Join(TimeSpan) パラメーターを受け取るスレッド メソッドの場合、この値はスレッドを無期限に中断するために使用されます。 ただし、ほとんどの場合、スレッドの同期やリソースの管理には、System.ThreadingMutexMonitorEventWaitHandleなど、他のSemaphore クラスを使用することをお勧めします。

このフィールドの値は -00:00:00.0010000 または -1 ミリ秒です。

適用対象