ManualResetEvent(Boolean) Constructor
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.
Initializes a new instance of the ManualResetEvent class with a Boolean value indicating whether to set the initial state to signaled.
public:
ManualResetEvent(bool initialState);
public ManualResetEvent (bool initialState);
new System.Threading.ManualResetEvent : bool -> System.Threading.ManualResetEvent
Public Sub New (initialState As Boolean)
Parameters
- initialState
- Boolean
true
to set the initial state signaled; false
to set the initial state to nonsignaled.
Remarks
If the initial state of a ManualResetEvent is signaled (that is, if it is created by passing true
for initialState
), threads that wait on the ManualResetEvent do not block. If the initial state is nonsignaled, threads block until the Set method is called.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor