Timeout.InfiniteTimeSpan フィールド
定義
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
フィールド値
- 属性
注釈
やなど、型のパラメーターを受け取るスレッドメソッドの場合 timeout
TimeSpan Thread.Sleep(TimeSpan) Thread.Join(TimeSpan) 、この値を使用してスレッドを無期限に中断します。For threading methods that accept a timeout
parameter of type TimeSpan, such as Thread.Sleep(TimeSpan) and Thread.Join(TimeSpan), this value is used to suspend the thread indefinitely. ただし、ほとんどの場合、 System.Threading Mutex スレッドを Monitor EventWaitHandle Semaphore 同期したりリソースを管理したりするために、他のクラス (、、、など) を使用することをお勧めします。However, in most cases, we recommend that you use other System.Threading classes, such as Mutex, Monitor, EventWaitHandle, or Semaphore instead, to synchronize threads or manage resources.
このフィールドの値は、-00:00: 00.0010000 または-1 ミリ秒です。The value of this field is -00:00:00.0010000, or -1 millisecond.