---
title: "SyncHandler..::.Unlock Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_SyncHandler_Unlock.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# SyncHandler.Unlock Method 
 
Unlocks the object previously locked with method [Lock()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_SyncHandler_Lock.htm.md).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Sub Unlock
```
 
```csharp
public virtual void Unlock()
```
 
## Remarks
 Every time you call method [Lock()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_SyncHandler_Lock.htm.md) object becomes unavailable until you call this method (the threads which access locked object are stopped until unlocking). That's why it is extremely important to call this method when you finished working with the object. 
**Note**
All Graphics Mill for .NET method and properties already uses [Lock()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_SyncHandler_Lock.htm.md)/Unlock() methods to provide thread safety. You need call these methods manually only if you manipulate the objects manually, or if you inherit your own class from [ILockable](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ILockable.htm.md) interface.
   
## See Also

### Reference

- [SyncHandler Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_SyncHandler.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
