- waitHandles
- An array of type IntPtr that contains the native operating system handles.
- waitAll
- true to wait for all handles; false to wait for any handle.
- millisecondsTimeout
- The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.
The array index of the object that satisfied the wait.
The SynchronizationContext.Wait(IntPtr[], bool, int) method calls the external declaration SynchronizationContext.WaitHelper(IntPtr[], bool, int) to perform the wait activity. Override the SynchronizationContext.Wait(IntPtr[], bool, int) method to change the wait behavior for the synchronization context.