In The Hand - .NET Components for Mobility
EventWaitHandle Class
NamespacesInTheHand.ThreadingEventWaitHandle
Represents a thread synchronization event.
Declaration Syntax
C#Visual Basic
public sealed class EventWaitHandle : WaitHandle
Public NotInheritable Class EventWaitHandle _
	Inherits WaitHandle
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
EventWaitHandle(Boolean, EventResetMode)
Initializes a newly created EventWaitHandle object, specifying whether the wait handle is initially signaled, and whether it resets automatically or manually.

EventWaitHandle(Boolean, EventResetMode, String)
Initializes a newly created EventWaitHandle object, specifying whether the wait handle is initially signaled, whether it resets automatically or manually, and the name of a system synchronization event.

EventWaitHandle(Boolean, EventResetMode, String, Boolean%)
Initializes a newly created EventWaitHandle object, specifying whether the wait handle is initially signaled, whether it resets automatically or manually, the name of a system synchronization event, and a bool variable whose value after the call indicates whether the named system event was created.

Close()()()
releases all resources held by the current EventWaitHandle.
(Overrides WaitHandle.Close()()().)
Dispose(Boolean)
When overridden in a derived class, releases the unmanaged resources used by the WaitHandle, and optionally releases the managed resources.
(Inherited from WaitHandle.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Handle
Gets or sets the native operating system handle.
(Inherited from WaitHandle.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OpenExisting(String)
Opens an existing named synchronization event.

Reset()()()
Sets the state of the event to nonsignaled, causing threads to block.

Set()()()
Sets the state of the event to signaled, allowing one or more waiting threads to proceed.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WaitAny(array<WaitHandle>[]()[])
Waits for any of the elements in the specified array to receive a signal.

WaitAny(array<WaitHandle>[]()[], Int32, Boolean)
Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed integer to measure the time interval, and specifying whether to exit the synchronization domain before the wait.

WaitOne()()()
Blocks the current thread until the current WaitHandle receives a signal.
(Overrides WaitHandle.WaitOne()()().)
WaitOne(Int32, Boolean)
Blocks the current thread until the current WaitHandle receives a signal, using 32-bit signed integer to measure the time interval and specifying whether to exit the synchronization domain before the wait.
(Overrides WaitHandle.WaitOne(Int32, Boolean).)
WaitTimeout
Indicates that a WaitAny(array<WaitHandle>[]()[]) operation timed out before any of the wait handles were signaled.

Remarks
The EventWaitHandle class allows threads to communicate with each other by signaling. Typically, one or more threads block on an EventWaitHandle until an unblocked thread calls the Set()()() method, releasing one or more of the blocked threads.
Inheritance Hierarchy

Assembly: InTheHand.WindowsMobile (Module: InTheHand.WindowsMobile) Version: 3.2.0.0