ManualResetEvent Constructor
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the ManualResetEvent class with a Boolean value that indicates whether to set the initial state to signaled.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- initialState
- Type: System.Boolean
true to set the initial state to signaled; false to set the initial state to non-signaled.
Specify true for initialState if you want all threads that wait for the ManualResetEvent to be released immediately, until the Reset method is used to block the release of additional threads. Specify false for initialState if you want all threads that wait for the ManualResetEvent to block.
For an example of how to use this constructor, see ManualResetEvent.