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

장벽에 추가할 추가 참가자의 수입니다.

반환

Int64

새 참가자가 처음으로 참여할 장벽의 단계 번호입니다.

특성

예외

현재 인스턴스가 이미 삭제된 경우

participantCount 가 0보다 작습니다.

또는 participantCount 참가자를 추가하면 해당 장애물 참가자 수가 32,767을 초과하게 됩니다.

이 메서드는 사후 단계 작업 내에서 호출되었습니다.

설명

장벽이 현재 사후 단계 작업을 실행하는 경우 사후 단계 작업이 완료되고 장벽이 다음 단계로 넘어갈 때까지 이 호출이 차단됩니다.

적용 대상

추가 정보