SynchronizationContext.Wait(IntPtr[], Boolean, Int32) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Important
Cette API n’est pas conforme CLS.
- Alternative à la conformité CLS
- System.Threading.WaitHandle.WaitAll(WaitHandle[], TimeSpan, Boolean)
Attend que tout ou une partie des éléments du tableau spécifié reçoivent un signal.
public:
virtual int Wait(cli::array <IntPtr> ^ waitHandles, bool waitAll, int millisecondsTimeout);
[System.CLSCompliant(false)]
public virtual int Wait(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public virtual int Wait(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout);
[<System.CLSCompliant(false)>]
abstract member Wait : nativeint[] * bool * int -> int
override this.Wait : nativeint[] * bool * int -> int
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
abstract member Wait : nativeint[] * bool * int -> int
override this.Wait : nativeint[] * bool * int -> int
Public Overridable Function Wait (waitHandles As IntPtr(), waitAll As Boolean, millisecondsTimeout As Integer) As Integer
- 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.
Index du tableau de l'objet ayant respecté l'attente.
- Attributs
waitHandles
a la valeur null.
La Wait méthode appelle la déclaration WaitHelper externe pour effectuer l’activité d’attente. Remplacez la Wait méthode pour modifier le comportement d’attente du contexte de synchronisation.
Produit | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :