|
| .NET Framework Class Library |
| CountdownEvent..::.Reset Method (Int32) |
| CountdownEvent Class See Also Send Feedback |
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
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | count is less than 0. |
| System..::.ObjectDisposedException | The current instance has alread been disposed. |