RemoveParticipants Method
Collapse the table of content
Expand the table of content

Barrier.RemoveParticipants Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Notifies the Barrier that there will be fewer participants.

Namespace:  System.Threading
Assembly:  System (in System.dll)

'Declaration
Public Sub RemoveParticipants ( _
	participantCount As Integer _
)

Parameters

participantCount
Type: System.Int32
The number of additional participants to remove from the barrier.

ExceptionCondition
ObjectDisposedException

The current instance has already been disposed.

ArgumentOutOfRangeException

participantCount is less than 0.

InvalidOperationException

The barrier already has 0 participants.

-or-

The method was invoked from within a post-phase action.

-or-

current participant count is less than the specified participantCount

ArgumentOutOfRangeException

The total participant count is less than the specified participantCount

If participantCount participants are already waiting on the barrier, this removal fulfills the barrier, the post phase action is executed and all of the participants are woken as if this participant being removed had successfully reached the barrier.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft