Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ManualResetEventSlim Constructor (Boolean, Int32)

.NET Framework 4.6 and 4.5

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
Assemblies:   mscorlib (in mscorlib.dll)
  System.Threading (in System.Threading.dll)

public ManualResetEventSlim(
	bool initialState,
	int spinCount
)

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.

ExceptionCondition
ArgumentOutOfRangeException

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft