ManualResetEvent Constructor (Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the ManualResetEvent class with a Boolean value indicating whether to set the initial state to signaled.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public ManualResetEvent(
	bool initialState


Type: System.Boolean

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

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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top