System.Threading.CountdownEvent.Wait Method

Blocks the current thread until the System.Threading.CountdownEvent is set, using a 32-bit signed integer to measure the timeout.

Syntax

public bool Wait (int millisecondsTimeout)

Parameters

millisecondsTimeout
The number of milliseconds to wait, or Timeout.Infinite(-1) to wait indefinitely.

Returns

true if the System.Threading.CountdownEvent was set; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

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