Bewerken

Delen via


CountdownEvent.WaitHandle Property

Definition

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

public:
 property System::Threading::WaitHandle ^ WaitHandle { System::Threading::WaitHandle ^ get(); };
public System.Threading.WaitHandle WaitHandle { get; }
member this.WaitHandle : System.Threading.WaitHandle
Public ReadOnly Property WaitHandle As WaitHandle

Property Value

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

Exceptions

The current instance has already been disposed.

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.

Applies to

See also