CountdownEvent Constructor

Task Parallel System.Threading

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

ExceptionCondition
System..::.ArgumentOutOfRangeExceptioninitialCount is less than 0.

See Also