AsyncReaderWriterResourceLock<TMoniker, TResource>.WriteLockAsync Method (CancellationToken)

Microsoft internal only.

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

Syntax

'Declaration
Public Function WriteLockAsync ( _
    cancellationToken As CancellationToken _
) As AsyncReaderWriterResourceLock(Of T).ResourceAwaitable
public AsyncReaderWriterResourceLock<T>.ResourceAwaitable WriteLockAsync(
    CancellationToken cancellationToken
)
public:
AsyncReaderWriterResourceLock<T>::ResourceAwaitable WriteLockAsync(
    CancellationToken cancellationToken
)
member WriteLockAsync : 
        cancellationToken:CancellationToken -> AsyncReaderWriterResourceLock<T>.ResourceAwaitable
public function WriteLockAsync(
    cancellationToken : CancellationToken
) : AsyncReaderWriterResourceLock<TMoniker, TResource>.ResourceAwaitable

Parameters

  • cancellationToken
    Type: System.Threading.CancellationToken

    A token whose cancellation indicates lost interest in obtaining the lock. A canceled token does not release a lock that has already been issued. But if the lock isn't immediately available, a canceled token will cause the code that is waiting for the lock to resume with an OperationCanceledException.

Return Value

Type: Microsoft.VisualStudio.Threading.AsyncReaderWriterResourceLock<TMoniker, TResource>.ResourceAwaitable
An AsyncReaderWriterResourceLock<TMoniker, TResource>.ResourceAwaitable whose result is the lock releaser.

.NET Framework Security

See Also

Reference

AsyncReaderWriterResourceLock<TMoniker, TResource> Class

WriteLockAsync Overload

Microsoft.VisualStudio.Threading Namespace