WaitHandle.WaitAny Method (System.Threading)

Switch View :
ScriptFree
.NET Framework Class Library
WaitHandle.WaitAny Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Static member WaitAny(WaitHandle[]) Waits for any of the elements in the specified array to receive a signal.
Public method Static member WaitAny(WaitHandle[], Int32) 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.
Public method Static member WaitAny(WaitHandle[], TimeSpan) Waits for any of the elements in the specified array to receive a signal, using a TimeSpan to specify the time interval.
Public method Static member WaitAny(WaitHandle[], Int32, Boolean) 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.
Public method Static member WaitAny(WaitHandle[], TimeSpan, Boolean) 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.
Top
See Also

Reference

Community Content

Glenn Hackney - MSFT
Wrong type

The WaitHandle() argument shown above should be WaitHandle[].

Headings change depending on which language is selected

If the last tab you selected was Visual Basic, the headings will show parentheses for array types, instead of square brackets, until you select a different language.

Glenn Hackney
Common Language Runtime Developer Guidance Team