Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DispatcherSynchronizationContext::Wait Method (array<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)

public:
[SecurityCriticalAttribute]
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::NoFlags | SecurityPermissionFlag::ControlEvidence | SecurityPermissionFlag::ControlPolicy)]
virtual int Wait(
	array<IntPtr>^ waitHandles,
	bool waitAll,
	int millisecondsTimeout
) override

Parameters

waitHandles
Type: array<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:
© 2017 Microsoft