System.Threading.Timeout Class

public sealed class Timeout

Base Types

Object
  Timeout

Assembly

mscorlib

Library

BCL

Summary

Contains a constant used to specify an infinite amount of time.

See Also

System.Threading Namespace

Members

Timeout Fields

Timeout.Infinite Field


Timeout.Infinite Field

public const int Infinite = -1;

Summary

A constant used to specify an infinite waiting period.

Description

The value of this constant is -1.

[Note: For threading methods that accept a timeout parameter, such as System.Threading.Thread.Sleep(System.Int32) and System.Threading.Thread.Join , this value is used to suppress method behavior that would normally occur due to elapsed time. ]

See Also

System.Threading.Timeout Class, System.Threading Namespace