Table of Contents

Class ManualResetEvent

Namespace
System.Threading
Assembly
mscorlib.dll

Notifies one or more waiting threads that an event has occurred. This class cannot be inherited.

public sealed class ManualResetEvent : WaitHandle
Inheritance
ManualResetEvent
Inherited Members
Extension Methods

Constructors

ManualResetEvent(bool)

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)

Parameters

initialState bool

true to set the initial state signaled; false to set the initial state to nonsignaled.

Methods

Reset()

Sets the state of the event to nonsignaled, causing threads to block.

public bool Reset()

Returns

bool

true if the operation succeeds; otherwise, false.

Set()

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.

public bool Set()

Returns

bool

true if the operation succeeds; otherwise, false.