Reset Method (Int32)

Task Parallel System.Threading

Resets the CurrentCount to a specified value.

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

Syntax

Visual Basic (Declaration)
Public Sub Reset ( _
	count As Integer _
)
C#
public void Reset(
	int count
)

Parameters

count
Type: System..::.Int32
The number of signals required to set the CountdownEvent.

Remarks

Unlike most of the members of CountdownEvent, Reset is not thread-safe and may not be used concurrently with other members of this instance.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptioncount is less than 0.
System..::.ObjectDisposedExceptionThe current instance has alread been disposed.

See Also