.NET Framework Class Library |
CountdownEvent..::.WaitHandle Property |
CountdownEvent Class See Also Send Feedback |
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
Exception | Condition |
---|---|
System..::.ObjectDisposedException | The current instance has already been disposed. |