System.Threading.WaitHandleCannotBeOpenedException Class

The exception that is thrown when an attempt is made to open a system mutex or semaphore that does not exist.

See Also: WaitHandleCannotBeOpenedException Members

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public class WaitHandleCannotBeOpenedException : ApplicationException

Remarks

Instances of the System.Threading.Mutex class and the System.Threading.Semaphore class can represent named system synchronization objects. When you use the Mutex.OpenExisting(string) method or the Semaphore.OpenExisting(string) method to open a named system object that does not exist, a System.Threading.WaitHandleCannotBeOpenedException is thrown.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0