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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)>]
override Wait : 
        waitHandles:nativeint[] *
        waitAll:bool *
        millisecondsTimeout:int -> int

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: