DispatcherSynchronizationContext.Wait Method (IntPtr(), Boolean, Int32)


Waits for any or all the elements in the specified array to receive a signal.

Namespace:   System.Windows.Threading
Assembly:  WindowsBase (in WindowsBase.dll)

<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.NoFlags Or SecurityPermissionFlag.ControlEvidence Or SecurityPermissionFlag.ControlPolicy)>
Public Overrides Function Wait (
	waitHandles As IntPtr(),
	waitAll As Boolean,
	millisecondsTimeout As Integer
) As Integer


Type: System.IntPtr()

An array that contains the native operating system handles.

Type: System.Boolean

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

Type: System.Int32

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

Return Value

Type: System.Int32

The array index of the object that satisfied the wait.

.NET Framework
Available since 3.0
Return to top