Share via


Timeout.Infinite Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

A constant used to specify an infinite waiting period. This field is constant.

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

Syntax

'Declaration
Public Const Infinite As Integer
public const int Infinite

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.