This documentation is for the old version. Go to the latest Graphics Mill docs

ILockable.Unlock Method

Unlocks the object previously locked with method Lock().

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Sub Unlock
void Unlock()


Every time you call method Lock() 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.

All Graphics Mill for .NET method and properties already uses Lock()/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 interface.

See Also