Barrier::AddParticipants Method (Int32)
.NET Framework (current version)
Notifies the Barrier that there will be additional participants.
Assembly: System (in System.dll)
Parameters
- participantCount
-
Type:
System::Int32
The number of additional participants to add to the barrier.
Return Value
Type: System::Int64The phase number of the barrier in which the new participants will first participate.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The current instance has already been disposed. |
| ArgumentOutOfRangeException | participantCount is less than 0. -or- Adding participantCount participants would cause the barrier's participant count to exceed 32,767. |
| InvalidOperationException | The method was invoked from within a post-phase action. |
If the barrier is currently executing a post phase action, this call is blocked until the post phase action completes and the barrier has moved on to the next phase.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Show: