using System.Threading; EventWaitHandle event = new EventWaitHandle(false, EventResetMode.AutoReset);
using System.Threading; EventWaitHandle event = new EventWaitHandle(false, EventResetMode.ManualReset);Examples 1 and 2 demonstrate how to create two different types of events using the CreateEvent method. The first example creates an event with auto reset behavior, which means the event will automatically reset itself after a single thread has signaled it. The second example creates an event with manual reset behavior, which means the event will remain signaled until it is manually reset. The package library for this method is System.Threading.