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.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für