Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WaitHandle Class

Encapsulates operating system-specific objects that wait for exclusive access to shared resources.

For a list of all members of this type, see WaitHandle Members.

System.Object
   System.MarshalByRefObject
      System.Threading.WaitHandle
         System.Threading.AutoResetEvent
         System.Threading.ManualResetEvent
         System.Threading.Mutex

[Visual Basic]
MustInherit Public Class WaitHandle
   Inherits MarshalByRefObject
   Implements IDisposable
[C#]
public abstract class WaitHandle : MarshalByRefObject, IDisposable
[C++]
public __gc __abstract class WaitHandle : public
   MarshalByRefObject, IDisposable
[JScript]
public abstract class WaitHandle extends MarshalByRefObject
   implements IDisposable

Thread Safety

This type is safe for multithreaded operations.

Remarks

This class is typically used as a base class for synchronization objects. Classes derived from WaitHandle define a signaling mechanism to indicate taking or releasing exclusive access to a shared resource, but use the inherited WaitHandle methods to block while waiting for access to shared resources.

Use the static methods of this class to block a thread until one or more synchronization objects receive a signal.

Requirements

Namespace: System.Threading

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

WaitHandle Members | System.Threading Namespace | WaitHandle

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft