TimeoutTimer constructor (1 of 3)

Initializes a new instance of the TimeoutTimer class.

public TimeoutTimer()

Remarks

Creates an already timed out timer.

See Also


TimeoutTimer constructor (2 of 3)

Initializes a new instance of the TimeoutTimer class.

public TimeoutTimer(int millisecondsUntilTimeout)
parameter description
millisecondsUntilTimeout The timeout in milliseconds.

Remarks

Use int.MaxValue (or Timeout.Infinite) for a timer that never times out.

See Also


TimeoutTimer constructor (3 of 3)

Initializes a new instance of the TimeoutTimer class.

public TimeoutTimer(TimeSpan timeSpanUntilTimeout)
parameter description
timeSpanUntilTimeout The time span for the timeout.

Remarks

Use at least int.MaxValue (or Timeout.Infinite) milliseconds for a timer that never times out.

See Also