語言

Barrier.AddParticipants(Int32) 方法

定義

通知他們 Barrier 將有更多參與者。

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

參數

participantCount
Int32

增加的額外參與者數量。

傳回

新參與者首次參與的障礙階段編號。

屬性

例外狀況

目前的實例已經被處理完畢。

participantCount 小於0。

-或-

若增加 participantCount 參與者,障礙的參賽人數將超過32,767人。

此方法從相位的後作用中被啟動。

備註

若障礙目前執行階段後動作,則此呼叫會被阻擋,直到後階段動作完成且障礙進入下一階段。

適用於

另請參閱