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.
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 nonsignaled.
- spinCount
- Type: System.Int32
The number of spin waits that will occur before falling back to a kernel-based wait operation.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | spinCount is less than 0 or greater than the maximum allowed value. |
Show: