ManualResetEventSlim.WaitHandle ManualResetEventSlim.WaitHandle ManualResetEventSlim.WaitHandle ManualResetEventSlim.WaitHandle Property

Definition

Gets the underlying WaitHandle object for this ManualResetEventSlim.

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

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. It is recommended to dispose the ManualResetEventSlim instance after accessing this property, in order to prevent a resource leak.

Applies to

See also