ManualResetEventSlim ManualResetEventSlim ManualResetEventSlim ManualResetEventSlim Constructors

Definition

Overloads

ManualResetEventSlim() ManualResetEventSlim() ManualResetEventSlim()

Initializes a new instance of the ManualResetEventSlim class with an initial state of nonsignaled.

ManualResetEventSlim(Boolean) ManualResetEventSlim(Boolean) ManualResetEventSlim(Boolean) 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) ManualResetEventSlim(Boolean, Int32) ManualResetEventSlim(Boolean, Int32) 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() ManualResetEventSlim() ManualResetEventSlim()

Initializes a new instance of the ManualResetEventSlim class with an initial state of nonsignaled.

public:
 ManualResetEventSlim();
public ManualResetEventSlim ();
Public Sub New ()
See also

ManualResetEventSlim(Boolean) ManualResetEventSlim(Boolean) ManualResetEventSlim(Boolean) ManualResetEventSlim(Boolean)

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 Boolean Boolean Boolean

true to set the initial state signaled; false to set the initial state to nonsignaled.

See also

ManualResetEventSlim(Boolean, Int32) ManualResetEventSlim(Boolean, Int32) ManualResetEventSlim(Boolean, Int32) 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.

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 Boolean Boolean Boolean

true to set the initial state to signaled; false to set the initial state to nonsignaled.

spinCount
Int32 Int32 Int32 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.

See also

Applies to