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


public class WaitHandleCannotBeOpenedException : ApplicationException


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.


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