ManualResetEventSlim Constructor (Boolean, Int32)
Collapse the table of content
Expand the table of content

ManualResetEventSlim Constructor (Boolean, Int32)

[ 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 ManualResetEventSlim class with a Boolean value indicating whether to set the intial state to signaled and a specified spin count.

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

public ManualResetEventSlim(
	bool initialState,
	int spinCount


Type: System.Boolean
true to set the initial state to signaled; false to set the initial state to nonsignaled.
Type: System.Int32
The number of spin waits that will occur before falling back to a kernel-based wait operation.


spinCount is less than 0 or greater than the maximum allowed value.

Windows Phone OS

Supported in: 8.1, 8.0

© 2017 Microsoft