DispatcherSynchronizationContext.Wait(IntPtr[], Boolean, Int32) 方法

定义

等待指定数组中的任一元素或所有元素接收信号。

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

参数

waitHandles

IntPtr[]

nativeint[]

一个包含本机操作系统句柄的数组。

waitAll
Boolean

若等待所有句柄,则为 true;若等待任一句柄,则为 false

millisecondsTimeout
Int32

等待的毫秒数,或为 Infinite (-1),表示无限期等待。

返回

满足等待的对象的数组索引。

属性

适用于