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.
System.Object
System.Exception
System.SystemException
System.Threading.SynchronizationLockException
[Visual Basic] <Serializable> Public Class SynchronizationLockException Inherits SystemException [C#] [Serializable] public class SynchronizationLockException : SystemException [C++] [Serializable] public __gc class SynchronizationLockException : public SystemException [JScript] public Serializable 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.
Remarks
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.
Requirements
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