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
Flags
Gets the flags that were passed into this lock.
public AsyncReaderWriterLock.LockFlags Flags { get; }
Property Value
HasReadLock
Gets a value indicating whether this lock is an active read lock or is nested by one.
public bool HasReadLock { get; }
Property Value
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
HasWriteLock
Gets a value indicating whether this lock is an active write lock or is nested by one.
public bool HasWriteLock { get; }
Property Value
IsActive
Gets a value indicating whether this lock is still active.
public bool IsActive { get; }
Property Value
IsReadLock
Gets a value indicating whether this lock represents a read lock.
public bool IsReadLock { get; }
Property Value
IsUpgradeableReadLock
Gets a value indicating whether this lock represents an upgradeable read lock.
public bool IsUpgradeableReadLock { get; }
Property Value
IsValid
Gets a value indicating whether this handle is to a lock which was actually acquired.
public bool IsValid { get; }
Property Value
IsWriteLock
Gets a value indicating whether this lock represents a write lock.
public bool IsWriteLock { get; }
Property Value
NestingLock
Gets the lock within which this lock was acquired.
public AsyncReaderWriterLock.LockHandle NestingLock { get; }