語言

Barrier.RemoveParticipants(Int32) 方法

定義

通知他們 Barrier 參與者將減少。

public:
 void RemoveParticipants(int participantCount);
public void RemoveParticipants(int participantCount);
member this.RemoveParticipants : int -> unit
Public Sub RemoveParticipants (participantCount As Integer)

參數

participantCount
Int32

需要移除額外參與者的數量。

例外狀況

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

總參與者數低於規定 participantCount

障礙賽已經沒有人參加。

-或-

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

-或-

目前的參與者數量少於指定的 participantCount。

備註

若 participantCount 參與者已在等待障礙,移除即完成障礙,執行後階段動作,所有參與者被喚醒,彷彿該參與者已成功抵達障礙。

適用於

另請參閱