Barrier.RemoveParticipants(Int32) Méthode
Définition
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.
Avertit qu’il Barrier y aura moins de participants.
public:
void RemoveParticipants(int participantCount);
public void RemoveParticipants(int participantCount);
member this.RemoveParticipants : int -> unit
Public Sub RemoveParticipants (participantCount As Integer)
Paramètres
- participantCount
- Int32
Nombre de participants supplémentaires à retirer de la barrière.
Exceptions
L’instance actuelle a déjà été supprimée.
Le nombre total de participants est inférieur au nombre spécifié participantCount
La barrière compte déjà 0 participants.
-ou-
La méthode a été appelée à partir d’une action post-phase.
-ou-
Le nombre de participants actuel est inférieur au nombre de participants spécifié.
Remarques
Si participantCount les participants attendent déjà sur la barrière, cette suppression remplit la barrière, l’action post-phase est exécutée et tous les participants sont réveillés comme si ce participant a réussi à atteindre la barrière.