WaitHandle Property
Collapse the table of content
Expand the table of content

ManualResetEventSlim.WaitHandle Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the underlying WaitHandle object for this ManualResetEventSlim.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public WaitHandle WaitHandle { get; }

Property Value

Type: System.Threading.WaitHandle
The underlying WaitHandle event object fore this ManualResetEventSlim.

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft