Barrier.AddParticipants(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
通知他們 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
增加的額外參與者數量。
傳回
新參與者首次參與的障礙階段編號。
- 屬性
例外狀況
目前的實例已經被處理完畢。
此方法從相位的後作用中被啟動。
備註
若障礙目前執行階段後動作,則此呼叫會被阻擋,直到後階段動作完成且障礙進入下一階段。