Timeout Class

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

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

Inheritance Hierarchy

System..::.Object
System.Threading..::.Timeout

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

Syntax

Public NotInheritable Class Timeout
public static class Timeout

The Timeout type exposes the following members.

Fields

Name Description
Infinite A constant used to specify an infinite waiting period. This field is constant.
InfiniteTimeSpan A constant used to specify an infinite waiting period, for methods that accept a TimeSpan parameter.

Top

Remarks

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

Thread Safety

This type is thread safe.

See Also

Reference

System.Threading Namespace

Thread