Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OpenExisting()

static EventWaitHandle System.Threading.EventWaitHandle.OpenExisting ( string name)
inlinestaticinherited

Definition at line 31 of file EventWaitHandle.cs.

32 {
33 EventWaitHandle result;
34 return OpenExistingWorker(name, out result) switch
35 {
36 OpenExistingResult.NameNotFound => throw new WaitHandleCannotBeOpenedException(),
37 OpenExistingResult.NameInvalid => throw new WaitHandleCannotBeOpenedException(SR.Format(SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle, name)),
38 OpenExistingResult.PathNotFound => throw new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, name)),
39 _ => result,
40 };
41 }
EventWaitHandle(bool initialState, EventResetMode mode)
static OpenExistingResult OpenExistingWorker(string name, out EventWaitHandle result)

References System.SR.Format(), System.SR.IO_PathNotFound_Path, System.Threading.EventWaitHandle.OpenExistingWorker(), and System.SR.Threading_WaitHandleCannotBeOpenedException_InvalidHandle.