Wait Method

Task Parallel System.Threading

Blocks the current thread until the current ManualResetEventSlim is set.

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

Syntax

Visual Basic (Declaration)
Public Sub Wait
C#
public void Wait()

Remarks

The caller of this method blocks indefinitely until the current instance is set. The caller will return immediately if the event is currently in a set state.

Exceptions

ExceptionCondition
System..::.InvalidOperationException The maximum number of waiters has been exceeded.

See Also