WaitHandle Property

Task Parallel System.Threading

Gets a WaitHandle that is used to wait for the event to be set.

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

Syntax

Visual Basic (Declaration)
Public ReadOnly Property WaitHandle As WaitHandle
C#
public WaitHandle WaitHandle { get; }

Field Value

A WaitHandle that is used to wait for the event to be set.

Remarks

WaitHandle should only be used if it's needed for integration with code bases that rely on having a WaitHandle. If all that's needed is to wait for the CountdownEvent to be set, the Wait()()() method should be preferred.

Exceptions

ExceptionCondition
System..::.ObjectDisposedExceptionThe current instance has already been disposed.

See Also