Share via


WaitAll Method (WaitHandle[])

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

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

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

Syntax

'Declaration
Public Shared Function WaitAll ( _
    waitHandles As WaitHandle() _
) As Boolean
public static bool WaitAll(
    WaitHandle[] waitHandles
)
public:
static bool WaitAll(
    array<WaitHandle^>^ waitHandles
)
static member WaitAll : 
        waitHandles:WaitHandle[] -> bool 
public static function WaitAll(
    waitHandles : WaitHandle[]
) : boolean

Parameters

  • waitHandles
    Type: array<System.Threading. . :: . .WaitHandle> [] () [] []
    A WaitHandle array containing the objects for which the current instance will wait. This array cannot contain multiple references to the same object.

Return Value

Type: System. . :: . .Boolean
true when every element in waitHandles has received a signal; otherwise the method never returns.

.NET Framework Security

See Also

Reference

WaitHandle Class

WaitAll Overload

System.Threading Namespace