SynchronizationContext.WaitHelper(IntPtr[], Boolean, Int32) Méthode

Définition

Important

Cette API n’est pas conforme CLS.

Alternative à la conformité CLS
System.Threading.WaitHandle.WaitAll(WaitHandle[], TimeSpan, Boolean)

Fonction d’assistance qui attend tout ou partie des éléments du tableau spécifié pour recevoir un signal.

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

Paramètres

waitHandles

IntPtr[]

nativeint[]

Tableau de type IntPtr qui contient les handles du système d’exploitation natif.

waitAll
Boolean

true pour attendre tous les handles ; false pour attendre n’importe quel handle.

millisecondsTimeout
Int32

Nombre de millisecondes à attendre, ou Infinite (-1) d’attendre indéfiniment.

Retours

Index de tableau de l’objet qui satisfait l’attente.

Attributs

Remarques

WaitHelper est une déclaration pour une fonction d’assistance externe non managée. WaitHelper est appelée par la Wait méthode pour attendre un signal pour les handles de système d’exploitation spécifiés.

S’applique à