InfiniteTimeSpan Field
Collapse the table of content
Expand the table of content

Timeout.InfiniteTimeSpan Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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 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

© 2016 Microsoft