0 out of 1 rated this helpful - Rate this topic

Timeout Class

April 12, 2014

Contains a constant that is used to specify an infinite amount of time. This class cannot be inherited.


Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)
Public NotInheritable Class Timeout

The Timeout type exposes the following members.

Public fieldStatic memberInfiniteA constant used to specify an infinite waiting period. This field is constant.
Public fieldStatic memberInfiniteTimeSpanA constant used to specify an infinite waiting period, for methods that accept a TimeSpan parameter.

The only member of this class, Infinite, is a constant used by methods that accept an integer timeout parameter, such as Thread.Sleep(Int32) and Thread.Join(Int32).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

This type is thread safe.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.