Compartir a través de


AsyncReaderWriterLock.OnBeforeLockReleasedAsync Method

Microsoft internal only. Occurs when any lock is being released.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Protected Overridable Function OnBeforeLockReleasedAsync ( _
    exclusiveLockRelease As Boolean, _
    releasingLock As AsyncReaderWriterLock.LockHandle _
) As Task
protected virtual Task OnBeforeLockReleasedAsync(
    bool exclusiveLockRelease,
    AsyncReaderWriterLock.LockHandle releasingLock
)
protected:
virtual Task^ OnBeforeLockReleasedAsync(
    bool exclusiveLockRelease, 
    AsyncReaderWriterLock::LockHandle releasingLock
)
abstract OnBeforeLockReleasedAsync : 
        exclusiveLockRelease:bool * 
        releasingLock:AsyncReaderWriterLock.LockHandle -> Task  
override OnBeforeLockReleasedAsync : 
        exclusiveLockRelease:bool * 
        releasingLock:AsyncReaderWriterLock.LockHandle -> Task
protected function OnBeforeLockReleasedAsync(
    exclusiveLockRelease : boolean, 
    releasingLock : AsyncReaderWriterLock.LockHandle
) : Task

Parameters

  • exclusiveLockRelease
    Type: System.Boolean

    A flag indicating whether the last write lock that the caller holds is being released.

Return Value

Type: System.Threading.Tasks.Task
A Task whose completion signals the conclusion of the asynchronous operation.

.NET Framework Security

See Also

Reference

AsyncReaderWriterLock Class

Microsoft.VisualStudio.Threading Namespace