Udostępnij za pośrednictwem


AsyncReaderWriterLock.LockHandle Struct

Definition

A "public" representation of a specific lock.

protected: value class AsyncReaderWriterLock::LockHandle
struct AsyncReaderWriterLock::LockHandle
protected struct AsyncReaderWriterLock.LockHandle
[System.Runtime.CompilerServices.IsReadOnly]
protected readonly struct AsyncReaderWriterLock.LockHandle
Protected Structure AsyncReaderWriterLock.LockHandle
Inheritance
AsyncReaderWriterLock.LockHandle
Attributes

Properties

Data

Gets or sets some object associated to this specific lock.

Flags

Gets the flags that were passed into this lock.

HasReadLock

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

HasUpgradeableReadLock

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

HasWriteLock

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

IsActive

Gets a value indicating whether this lock is still active.

IsReadLock

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

IsUpgradeableReadLock

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

IsValid

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

IsWriteLock

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

NestingLock

Gets the lock within which this lock was acquired.

Applies to

Thread Safety

This type is thread-safe for all members.