AddCount Method (Int32)

Task Parallel System.Threading

Increments the CountdownEvent's current count by a specified value.

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

Syntax

Visual Basic (Declaration)
Public Sub AddCount ( _
	signalCount As Integer _
)
C#
public void AddCount(
	int signalCount
)

Parameters

signalCount
Type: System..::.Int32
The value by which to increase CurrentCount.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionsignalCount is less than 0.
System..::.InvalidOperationExceptionThe current instance is already set.
System..::.InvalidOperationExceptionCurrentCount is equal to MaxValue.
System..::.ObjectDisposedExceptionThe current instance has already been disposed.

See Also