System.Threading.SynchronizationLockException Class

The exception that is thrown when a method requires the caller to own the lock on a given Monitor, and the method is invoked by a caller that does not own that lock.

See Also: SynchronizationLockException Members


public class SynchronizationLockException : SystemException


System.Threading.SynchronizationLockException is thrown by calling the Monitor.Exit(object), Monitor.Pulse(object), Monitor.PulseAll(object), and Monitor.Wait(object, int, bool) methods of the System.Threading.Monitor class from an unsynchronized block of code.

System.Threading.SynchronizationLockException uses the HRESULT COR_E_SYNCHRONIZATIONLOCK, which has the value 0x80131518.

For a list of initial property values for an instance of System.Threading.SynchronizationLockException, see the SynchronizationLockException.#ctor constructors.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.


Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,