SynchronizationLockException Class

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.

For a list of all members of this type, see SynchronizationLockException Members.


[Visual Basic]
Public Class SynchronizationLockException
   Inherits SystemException
public class SynchronizationLockException : SystemException
public __gc class SynchronizationLockException : public
class SynchronizationLockException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


SynchronizationLockException is thrown by calling the Exit, Pulse, PulseAll, and Wait methods of the Monitor class from an unsynchronized block of code.

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

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


Namespace: System.Threading

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

SynchronizationLockException Members | System.Threading Namespace | Monitor | Managed and Unmanaged Threading | Exception | Handling and Throwing Exceptions

© 2015 Microsoft