Initializes a new instance of the Barrier class.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ participantCount As Integer _ ) |
| C# |
|---|
public Barrier( int participantCount ) |
Parameters
- participantCount
- Type: System..::.Int32
The number of participating threads.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | participantCount is less than 0 or greater than MaxValue. |