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 beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor