ManualResetEventSlim Constructor (Boolean, Int32)
.NET Framework (current version)
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. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Show: