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.

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

Public Sub New (
	initialState As Boolean,
	spinCount As Integer
)

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
Return to top
Show: