Timeout.InfiniteTimeSpan Field

May 11, 2014

A constant used to specify an infinite waiting period, for methods that accept a TimeSpan parameter.

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

public static readonly TimeSpan InfiniteTimeSpan

The value of this constant is a TimeSpan object that represents -1 milliseconds. For threading methods that accept a timeout parameter, such as Thread.Sleep(TimeSpan), this value is used to suppress time-out behavior.

Windows Phone OS

Supported in: 8.1, 8.0

© 2014 Microsoft