Table of Contents

Struct AsyncReaderWriterLock.LockHandle

Namespace
Microsoft.VisualStudio.Threading
Assembly
Microsoft.VisualStudio.Threading.dll

A "public" representation of a specific lock.

protected readonly struct AsyncReaderWriterLock.LockHandle
Inherited Members

Properties

Data

Gets or sets some object associated to this specific lock.

public object? Data { get; set; }

Property Value

object

Flags

Gets the flags that were passed into this lock.

public AsyncReaderWriterLock.LockFlags Flags { get; }

Property Value

AsyncReaderWriterLock.LockFlags

HasReadLock

Gets a value indicating whether this lock is an active read lock or is nested by one.

public bool HasReadLock { get; }

Property Value

bool

HasUpgradeableReadLock

Gets a value indicating whether this lock is an active upgradeable read lock or is nested by one.

public bool HasUpgradeableReadLock { get; }

Property Value

bool

HasWriteLock

Gets a value indicating whether this lock is an active write lock or is nested by one.

public bool HasWriteLock { get; }

Property Value

bool

IsActive

Gets a value indicating whether this lock is still active.

public bool IsActive { get; }

Property Value

bool

IsReadLock

Gets a value indicating whether this lock represents a read lock.

public bool IsReadLock { get; }

Property Value

bool

IsUpgradeableReadLock

Gets a value indicating whether this lock represents an upgradeable read lock.

public bool IsUpgradeableReadLock { get; }

Property Value

bool

IsValid

Gets a value indicating whether this handle is to a lock which was actually acquired.

public bool IsValid { get; }

Property Value

bool

IsWriteLock

Gets a value indicating whether this lock represents a write lock.

public bool IsWriteLock { get; }

Property Value

bool

NestingLock

Gets the lock within which this lock was acquired.

public AsyncReaderWriterLock.LockHandle NestingLock { get; }

Property Value

AsyncReaderWriterLock.LockHandle