[To be supplied.]
[Visual Basic] Overloads Public Shared Function WaitAll( _ ByVal waitHandles() As WaitHandle, _ ByVal timeout As TimeSpan, _ ByVal exitContext As Boolean _ ) As Boolean [C#] public static bool WaitAll( WaitHandle[] waitHandles, TimeSpan timeout, bool exitContext ); [C++] public: static bool WaitAll( WaitHandle* waitHandles[], TimeSpan timeout, bool exitContext ); [JScript] public static function WaitAll( waitHandles : WaitHandle[], timeout : TimeSpan, exitContext : Boolean ) : Boolean;
Exception Type | Condition |
---|---|
ArgumentNullException | If any of the objects in the waitHandles array are either a null reference (in Visual Basic Nothing) or are duplicate. |
Returns when the wait terminates, which means either when all the handles are signaled or when time-out occurrs. On some implementations if more than 64 handles are passed a NotSupportedException is thrown. If there are duplicates in the array, the call will fail.
WaitHandle Class | WaitHandle Members | System.Threading Namespace | WaitHandle.WaitAll Overload List