System.Threading.WaitHandle.WaitAll C# (CSharp) Method

WaitAll() public static method

public static WaitAll ( WaitHandle waitHandles, System.TimeSpan timeout, bool exitContext ) : bool
waitHandles WaitHandle
timeout System.TimeSpan
exitContext bool
return bool
        public static bool WaitAll(
                                    WaitHandle[] waitHandles, 
                                    TimeSpan timeout,
                                    bool exitContext)
        {
            long tm = (long)timeout.TotalMilliseconds;
            if (-1 > tm || (long) Int32.MaxValue < tm)
            {
                throw new ArgumentOutOfRangeException("timeout", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1"));
            }
            return WaitAll(waitHandles,(int)tm, exitContext);
        }

Same methods

WaitHandle::WaitAll ( WaitHandle waitHandles ) : bool
WaitHandle::WaitAll ( WaitHandle waitHandles, int millisecondsTimeout, bool exitContext ) : bool