Barrier.AddParticipants(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 le fait qu’il Barrier y aura des participants supplémentaires.
public:
long AddParticipants(int participantCount);
public long AddParticipants(int participantCount);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public long AddParticipants(int participantCount);
member this.AddParticipants : int -> int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.AddParticipants : int -> int64
Public Function AddParticipants (participantCount As Integer) As Long
Paramètres
- participantCount
- Int32
Nombre de participants supplémentaires à ajouter à la barrière.
Retours
Numéro de phase de la barrière dans laquelle les nouveaux participants participeront d’abord.
- Attributs
Exceptions
L’instance actuelle a déjà été supprimée.
participantCount est inférieur à 0.
- ou -
L’ajout participantCount de participants entraînerait le nombre de participants de la barrière à dépasser 32 767.
La méthode a été appelée à partir d’une action post-phase.
Remarques
Si la barrière exécute actuellement une action post-phase, cet appel est bloqué jusqu’à ce que l’action post-phase se termine et que la barrière passe à la phase suivante.