Timeout Class

July 28, 2014

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

System.Object
  System.Threading.Timeout

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public static class Timeout

The Timeout type exposes the following members.

  NameDescription
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.
Top

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.

Show:
© 2014 Microsoft