Initializes a new instance of CountdownEvent class with the
specified count.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ initialCount As Integer _ ) |
C# |
---|
public CountdownEvent( int initialCount ) |
Parameters
- initialCount
- Type: System..::.Int32
The number of signals required to set the CountdownEvent.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | initialCount is less than 0. |