AsyncReaderWriterLock.OnBeforeLockReleasedAsync Method

Definition

Fired when any lock is being released.

protected:
 virtual System::Threading::Tasks::Task ^ OnBeforeLockReleasedAsync(bool exclusiveLockRelease, Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockHandle releasingLock);
protected virtual System.Threading.Tasks.Task OnBeforeLockReleasedAsync (bool exclusiveLockRelease, Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockHandle releasingLock);
abstract member OnBeforeLockReleasedAsync : bool * Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockHandle -> System.Threading.Tasks.Task
override this.OnBeforeLockReleasedAsync : bool * Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockHandle -> System.Threading.Tasks.Task
Protected Overridable Function OnBeforeLockReleasedAsync (exclusiveLockRelease As Boolean, releasingLock As AsyncReaderWriterLock.LockHandle) As Task

Parameters

exclusiveLockRelease
Boolean

true if the last write lock that the caller holds is being released; false otherwise.

releasingLock
AsyncReaderWriterLock.LockHandle

The lock being released.

Returns

A task whose completion signals the conclusion of the asynchronous operation.

Applies to