Method Dispose Dispose() Releases all resources used by the lock. The lock must not be held by (or waited on by) any threads when it is disposed. Declaration public void Dispose() Implements IDisposable.Dispose()