Share via


NoMessagePumpSyncContext.Wait(IntPtr[], Boolean, Int32) Method

Definition

Synchronously blocks without a message pump.

public:
 override int Wait(cli::array <IntPtr> ^ waitHandles, bool waitAll, int millisecondsTimeout);
public override int Wait (IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
override this.Wait : nativeint[] * bool * int -> int
Public Overrides Function Wait (waitHandles As IntPtr(), waitAll As Boolean, millisecondsTimeout As Integer) As Integer

Parameters

waitHandles

IntPtr[]

nativeint[]

An array of type IntPtr that contains the native operating system handles.

waitAll
Boolean

true to wait for all handles; false to wait for any handle.

millisecondsTimeout
Int32

The number of milliseconds to wait, or Infinite (-1) to wait indefinitely.

Returns

The array index of the object that satisfied the wait.

Applies to