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 attendant que tout ou une partie des éléments du tableau spécifié reçoivent 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 contenant les handles de système d'exploitation natifs.

waitAll
Boolean

true pour attendre tous les handles ; false pour attendre un handle quelconque.

millisecondsTimeout
Int32

Nombre de millisecondes à attendre, ou Infinite (-1) pour un délai d'attente infini.

Retours

Index du tableau de l'objet ayant respecté l'attente.

Attributs

Remarques

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

S’applique à