System.Threading.ReaderWriterLock.ReleaseWriterLock Method

Decrements the lock count on the writer lock.

Syntax

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public void ReleaseWriterLock ()

Remarks

ReaderWriterLock.ReleaseWriterLock decrements the writer lock count. When the count reaches zero, the writer lock is released.

Note:

If a thread has a reader lock, or no locks, calling ReleaseWriterLock throws an ApplicationException.

Requirements

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