CountdownEvent.Reset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resets the CurrentCount value.
Overloads
Reset() |
Resets the CurrentCount to the value of InitialCount. |
Reset(Int32) |
Resets the InitialCount property to a specified value. |
Reset()
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
Resets the CurrentCount to the value of InitialCount.
public:
void Reset();
public void Reset ();
member this.Reset : unit -> unit
Public Sub Reset ()
Exceptions
The current instance has already been disposed.
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.
Applies to
Reset(Int32)
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
Resets the InitialCount property to a specified value.
public:
void Reset(int count);
public void Reset (int count);
member this.Reset : int -> unit
Public Sub Reset (count As Integer)
Parameters
- count
- Int32
The number of signals required to set the CountdownEvent.
Exceptions
The current instance has already been disposed.
count
is less than 0.
Remarks
This method resets InitialCount for all subsequent accesses of the property on the current instance. Unlike most of the members of CountdownEvent, Reset is not thread-safe and may not be used concurrently with other members of this instance.