 | 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: wclCommonAssembly: wclCommon (in wclCommon.dll) Version: 8.0.6.0
Syntaxpublic static int WaitAny(
wclEventWaitHandle[] Events,
int Timeout
)
Public Shared Function WaitAny (
Events As wclEventWaitHandle(),
Timeout As Integer
) As Integer
public:
static int WaitAny(
array<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
See Also