In The Hand - .NET Components for Mobility
WaitAny Method (waitHandles, millisecondsTimeout, exitContext)
NamespacesInTheHand.ThreadingEventWaitHandleWaitAny(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.
Declaration Syntax
C#Visual Basic
public static int WaitAny(
	WaitHandle[] waitHandles,
	int millisecondsTimeout,
	bool exitContext
)
Public Shared Function WaitAny ( _
	waitHandles As WaitHandle(), _
	millisecondsTimeout As Integer, _
	exitContext As Boolean _
) As Integer
Parameters
waitHandles (array< WaitHandle >[]()[])
A WaitHandle array containing the objects for which the current instance will wait.
millisecondsTimeout (Int32)
The number of milliseconds to wait, or Infinite (-1) to wait indefinitely.
exitContext (Boolean)
Not supported.
Return Value
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.

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