Mono Class Library: System.Threading.WaitHandle Overview | Members

System.Threading.WaitHandle.WaitAll Method

Waits for all of the elements in the specified array to receive a signal. [Edit]

public static bool WaitAll (WaitHandle[] waitHandles)

Parameters

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

Returns

Returns true when every element in waitHandles has received a signal. If the current thread receives a request to abort before the signals are received, this method returns false. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionwaitHandles is null or one or more elements in the waitHandles array is null. [Edit]
DuplicateWaitObjectExceptionwaitHandles contains elements that are duplicates. [Edit]
NotSupportedExceptionThe number of objects in waitHandles is greater than the system permits. [Edit]

Remarks

The maximum number of objects specified in the waitHandles array is system defined. [Edit]

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0