Condividi tramite


AsyncReaderWriterLock.OnBeforeLockReleasedAsync Metodo

Definizione

Attivato quando viene rilasciato qualsiasi blocco.

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

Parametri

exclusiveLockRelease
Boolean

true se l'ultimo blocco di scrittura che il chiamante contiene viene rilasciato; false Altrimenti.

releasingLock
AsyncReaderWriterLock.LockHandle

Blocco rilasciato.

Restituisce

Attività il cui completamento segnala la conclusione dell'operazione asincrona.

Si applica a