ManualResetEvent Constructor
Collapse the table of content
Expand the table of content

ManualResetEvent Constructor (Boolean)

 

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
)

Parameters

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 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft