共用方式為


AsyncReaderWriterLock.OnBeforeLockReleasedAsync 方法

定義

釋放任何鎖定時引發。

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

參數

exclusiveLockRelease
Boolean

true 如果呼叫端保留的最後一個寫入鎖定正在釋放,則為 ; false 否則。

releasingLock
AsyncReaderWriterLock.LockHandle

正在釋放的鎖定。

傳回

完成表示異步操作結束的工作。

適用於