ManualResetEventSlim Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ManualResetEventSlim class.
Overloads
ManualResetEventSlim() |
Initializes a new instance of the ManualResetEventSlim class with an initial state of nonsignaled. |
ManualResetEventSlim(Boolean) |
Initializes a new instance of the ManualResetEventSlim class with a Boolean value indicating whether to set the initial state to signaled. |
ManualResetEventSlim(Boolean, Int32) |
Initializes a new instance of the ManualResetEventSlim class with a Boolean value indicating whether to set the initial state to signaled and a specified spin count. |
ManualResetEventSlim()
- Source:
- ManualResetEventSlim.cs
- Source:
- ManualResetEventSlim.cs
- Source:
- ManualResetEventSlim.cs
Initializes a new instance of the ManualResetEventSlim class with an initial state of nonsignaled.
public:
ManualResetEventSlim();
public ManualResetEventSlim ();
Public Sub New ()
See also
Applies to
ManualResetEventSlim(Boolean)
- Source:
- ManualResetEventSlim.cs
- Source:
- ManualResetEventSlim.cs
- Source:
- ManualResetEventSlim.cs
Initializes a new instance of the ManualResetEventSlim class with a Boolean value indicating whether to set the initial state to signaled.
public:
ManualResetEventSlim(bool initialState);
public ManualResetEventSlim (bool initialState);
new System.Threading.ManualResetEventSlim : bool -> System.Threading.ManualResetEventSlim
Public Sub New (initialState As Boolean)
Parameters
- initialState
- Boolean
true to set the initial state signaled; false to set the initial state to nonsignaled.
See also
Applies to
ManualResetEventSlim(Boolean, Int32)
- Source:
- ManualResetEventSlim.cs
- Source:
- ManualResetEventSlim.cs
- Source:
- ManualResetEventSlim.cs
Initializes a new instance of the ManualResetEventSlim class with a Boolean value indicating whether to set the initial state to signaled and a specified spin count.
public:
ManualResetEventSlim(bool initialState, int spinCount);
public ManualResetEventSlim (bool initialState, int spinCount);
new System.Threading.ManualResetEventSlim : bool * int -> System.Threading.ManualResetEventSlim
Public Sub New (initialState As Boolean, spinCount As Integer)
Parameters
- initialState
- Boolean
true to set the initial state to signaled; false to set the initial state to nonsignaled.
- spinCount
- Int32
The number of spin waits that will occur before falling back to a kernel-based wait operation.
Exceptions
spinCount
is less than 0 or greater than the maximum allowed value.