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)

[SecurityCriticalAttribute]
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.NoFlags | SecurityPermissionFlag.ControlEvidence | SecurityPermissionFlag.ControlPolicy)]
public override int Wait(
	IntPtr[] waitHandles,
	bool waitAll,
	int millisecondsTimeout
)

Parameters

waitHandles
Type: System.IntPtr[]

An array that contains the native operating system handles.

waitAll
Type: System.Boolean

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

millisecondsTimeout
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
Show: