Windows apps
Collapse the table of content
Expand the table of content
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 (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

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:
© 2018 Microsoft