Click or drag to resize

wclEventWaitHandleWaitAny(wclEventWaitHandle, Int32) Method

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.

Namespace: wclCommon
Assembly: wclCommon (in wclCommon.dll) Version: 8.0.6.0
Syntax
public static int WaitAny(
	wclEventWaitHandle[] Events,
	int Timeout
)

Parameters

Events  wclEventWaitHandle
A wclEventWaitHandle array containing the objects for which the current instance will wait.
Timeout  Int32
The number of milliseconds to wait, or Infinite (-1) to wait indefinitely.

Return Value

Int32
The array index of the object that satisfied the wait, or WaitTimeout if no object satisfied the wait and a time interval equivalent to millisecondsTimeout has passed.
Exceptions
ExceptionCondition
ArgumentException The Events parameter is null or empty.
See Also