The exception that is thrown when an attempt is made to open a system named sychronization event that does not exist.
| C# | Visual Basic |
public sealed class WaitHandleCannotBeOpenedException : ApplicationException
Public NotInheritable Class WaitHandleCannotBeOpenedException _ Inherits ApplicationException
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| WaitHandleCannotBeOpenedException()()() | ||
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetBaseException()()() | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.) | |
| InnerException | Gets the Exception instance that caused the current exception. (Inherited from Exception.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Message | Gets a message that describes the current exception. (Inherited from Exception.) | |
| StackTrace | Gets a string representation of the frames on the call stack at the time the current exception was thrown. (Inherited from Exception.) | |
| ToString()()() | Creates and returns a string representation of the current exception. (Inherited from Exception.) |
Instances of the EventWaitHandle class can represent named system synchronization objects.
When you use the OpenExisting(String) method to open a named system object that does not exist, a WaitHandleCannotBeOpenedException is thrown.
| Object | |||
| Exception | |||
| ApplicationException | |||
| WaitHandleCannotBeOpenedException | |||