System.Threading.ReaderWriterLock.ReleaseLock Method

Releases the lock, regardless of the number of times the thread acquired the lock.

Syntax

public LockCookie ReleaseLock ()

Returns

A System.Threading.LockCookie value representing the released lock.

Remarks

ReaderWriterLock.ReleaseLock releases the reader lock or writer lock, regardless of the recursive lock count. To restore the state of the lock, including the lock count, pass the System.Threading.LockCookie to ReaderWriterLock.RestoreLock(LockCookie@).

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0