SynchronizationContext.WaitHelper(IntPtr[], Boolean, Int32) 方法

定義

重要

此 API 不符合 CLS 規範。

符合 CLS 規範替代方案
System.Threading.WaitHandle.WaitAll(WaitHandle[], TimeSpan, Boolean)

Helper 函式,等候指定陣列中的任何元素或所有元素接收信號。

protected:
 static int WaitHelper(cli::array <IntPtr> ^ waitHandles, bool waitAll, int millisecondsTimeout);
[System.CLSCompliant(false)]
protected static int WaitHelper (IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
protected static int WaitHelper (IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
[<System.CLSCompliant(false)>]
static member WaitHelper : nativeint[] * bool * int -> int
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member WaitHelper : nativeint[] * bool * int -> int
Protected Shared Function WaitHelper (waitHandles As IntPtr(), waitAll As Boolean, millisecondsTimeout As Integer) As Integer

參數

waitHandles

IntPtr[]

nativeint[]

IntPtr 類型的陣列,包含原生作業系統控制代碼。

waitAll
Boolean

true 表示等候所有控制代碼,false 則表示等候任何控制代碼。

millisecondsTimeout
Int32

要等候的毫秒數,如果要無限期等候,則為 Infinite (-1)。

傳回

滿足等候條件之物件的陣列索引。

屬性

備註

WaitHelper 是 Unmanaged 外部協助程式函式的宣告。 WaitHelperWait 方法呼叫,以等候指定作業系統控制碼的訊號。

適用於