Windows Dev Center

Timeout.InfiniteTimeSpan Field

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

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

'Declaration
Public Shared ReadOnly InfiniteTimeSpan As TimeSpan

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

Show:
© 2015 Microsoft