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.
See also
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈