System.Threading.WaitHandle: Method Members

The methods of System.Threading.WaitHandle are listed below. For a list of all members, see the WaitHandle Members list.

See Also: Inherited members from System.MarshalByRefObject

Public Methods

Close()

When overridden in a derived class, releases all resources held by the current System.Threading.WaitHandle.

Dispose()

Releases all resources used by the current instance of the System.Threading.WaitHandle class.

Finalize()

Releases the resources held by the current instance.

static
SignalAndWait(WaitHandle, WaitHandle) : bool

Signals one System.Threading.WaitHandle and waits on another.

static
SignalAndWait(WaitHandle, WaitHandle, int, bool) : bool

Signals one System.Threading.WaitHandle and waits on another, specifying a time-out interval as a 32-bit signed integer and specifying whether to exit the synchronization domain for the context before entering the wait.

static
SignalAndWait(WaitHandle, WaitHandle, TimeSpan, bool) : bool

Signals one System.Threading.WaitHandle and waits on another, specifying the time-out interval as a TimeSpan and specifying whether to exit the synchronization domain for the context before entering the wait.

static
WaitAll(WaitHandle[]) : bool

Waits for all the elements in the specified array to receive a signal.

static
WaitAll(WaitHandle[], int) : bool

Waits for all the elements in the specified array to receive a signal, using an int value to specify the time interval.

static
WaitAll(WaitHandle[], TimeSpan) : bool

Waits for all the elements in the specified array to receive a signal, using a TimeSpan value to specify the time interval.

static
WaitAll(WaitHandle[], int, bool) : bool

Waits for all the elements in the specified array to receive a signal, using an int value to specify the time interval and specifying whether to exit the synchronization domain before the wait.

static
WaitAll(WaitHandle[], TimeSpan, bool) : bool

Waits for all the elements in the specified array to receive a signal, using a TimeSpan value to specify the time interval, and specifying whether to exit the synchronization domain before the wait.

static
WaitAny(WaitHandle[]) : int

Waits for any of the elements in the specified array to receive a signal.

static
WaitAny(WaitHandle[], int) : int

Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed integer to specify the time interval.

static
WaitAny(WaitHandle[], TimeSpan) : int

Waits for any of the elements in the specified array to receive a signal, using a TimeSpan to specify the time interval.

static
WaitAny(WaitHandle[], int, bool) : int

Waits for any of the elements in the specified array to receive a signal, using a 32-bit signed integer to specify the time interval, and specifying whether to exit the synchronization domain before the wait.

static
WaitAny(WaitHandle[], TimeSpan, bool) : int

Waits for any of the elements in the specified array to receive a signal, using a TimeSpan to specify the time interval and specifying whether to exit the synchronization domain before the wait.

WaitOne() : bool

Blocks the current thread until the current System.Threading.WaitHandle receives a signal.

WaitOne(int) : bool

Blocks the current thread until the current System.Threading.WaitHandle receives a signal, using a 32-bit signed integer to specify the time interval.

WaitOne(TimeSpan) : bool

Blocks the current thread until the current instance receives a signal, using a TimeSpan to specify the time interval.

WaitOne(int, bool) : bool

Blocks the current thread until the current System.Threading.WaitHandle receives a signal, using a 32-bit signed integer to specify the time interval and specifying whether to exit the synchronization domain before the wait.

WaitOne(TimeSpan, bool) : bool

Blocks the current thread until the current instance receives a signal, using a TimeSpan to specify the time interval and specifying whether to exit the synchronization domain before the wait.

Protected Methods

Dispose(bool)

When overridden in a derived class, releases the unmanaged resources used by the System.Threading.WaitHandle, and optionally releases the managed resources.