Initializes a newly created EventWaitHandle object, specifying whether the wait
handle is initially signaled, and whether it resets automatically or manually.
| C# | Visual Basic |
public EventWaitHandle( bool initialState, EventResetMode mode )
Public Sub New ( _ initialState As Boolean, _ mode As EventResetMode _ )
- initialState (Boolean)
- true to set the initial state to signaled, false to set it to nonsignaled.
- mode (EventResetMode)
- An EventResetMode value that determines whether the event resets automatically or manually.
If name is a null reference (Nothing in Visual Basic) or an empty string, a local EventWaitHandle is created.
If a system event with the name specified for the name parameter already exists, the initialState parameter is ignored.