Share via


AsyncManualResetEvent Constructor

Initializes a new instance of AsyncManualResetEvent.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Public Sub New ( _
    initialState As Boolean, _
    allowInliningAwaiters As Boolean _
)
public AsyncManualResetEvent(
    bool initialState,
    bool allowInliningAwaiters
)
public:
AsyncManualResetEvent(
    bool initialState, 
    bool allowInliningAwaiters
)
new : 
        initialState:bool * 
        allowInliningAwaiters:bool -> AsyncManualResetEvent
public function AsyncManualResetEvent(
    initialState : boolean, 
    allowInliningAwaiters : boolean
)

Parameters

  • initialState
    Type: System.Boolean

    true if the event should be initially signaled, otherwise false.

Remarks

false better simulates the behavior of theManualResetEventSlim class, but true can result in slightly better performance.

.NET Framework Security

See Also

Reference

AsyncManualResetEvent Class

Microsoft.VisualStudio.Threading Namespace