WaitHandle Property

Task Parallel System.Threading

Gets the underlying WaitHandle object for this ManualResetEventSlim.

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

The underlying WaitHandle event object fore this ManualResetEventSlim.

Remarks

Accessing this property forces initialization of an underlying event object if one hasn't already been created. To simply wait on this ManualResetEventSlim, the public Wait methods should be preferred.

See Also