Share via


WaitAny Method (WaitHandle[])

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared Function WaitAny ( _
    waitHandles As WaitHandle() _
) As Integer
public static int WaitAny(
    WaitHandle[] waitHandles
)
public:
static int WaitAny(
    array<WaitHandle^>^ waitHandles
)
static member WaitAny : 
        waitHandles:WaitHandle[] -> int 
public static function WaitAny(
    waitHandles : WaitHandle[]
) : int

Parameters

Return Value

Type: System. . :: . .Int32
The array index of the object that satisfied the wait.

.NET Framework Security

See Also

Reference

WaitHandle Class

WaitAny Overload

System.Threading Namespace