System.Threading.WaitHandle Members

The members of System.Threading.WaitHandle are listed below.

See Also: Inherited members from System.MarshalByRefObject

Protected Constructors

Initializes a new instance of the System.Threading.WaitHandle class.

Public Fields

const
WaitTimeoutint (258).

Indicates that a WaitHandle.WaitAny(WaitHandle[], int, bool) operation timed out before any of the wait handles were signaled. This field is constant.

Protected Fields

static readonly
InvalidHandleIntPtr.

Represents an invalid native operating system handle. This field is read-only.

Public Properties

HandleIntPtr.

Gets or sets the native operating system handle.

SafeWaitHandleMicrosoft.Win32.SafeHandles.SafeWaitHandle.

Gets or sets the native operating system handle.

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.

Explicitly Implemented Interface Members

IDisposable.Dispose

Releases all resources used by the System.Threading.WaitHandle.