ManualResetEventSlim.WaitHandle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The underlying WaitHandle event object for 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. It is recommended to dispose the ManualResetEventSlim instance after accessing this property, in order to prevent a resource leak.