System.Threading.Timeout Class

Contains constants that specify infinite time-out intervals. This class cannot be inherited.

See Also: Timeout Members


public static class Timeout


The members of this class are used to specify infinite time-out intervals in threading operations. Timeout.Infinite is used by methods that accept an integer millisecondsTimeout parameter, such as Thread.Sleep(int), Thread.Join(int), and ReaderWriterLock.AcquireReaderLock(int). Timeout.InfiniteTimeSpan is used by methods that accept a timeout parameter of type TimeSpan, such as Thread.Sleep(TimeSpan), Thread.Join(TimeSpan), and ReaderWriterLock.AcquireReaderLock(TimeSpan).

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.


Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,