AsyncReaderWriterLock.LockHandle Structure
Microsoft internal only. A "public" representation of a specific lock.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Protected Structure LockHandle
protected struct LockHandle
protected value class LockHandle
[<Sealed>]
type LockHandle = struct end
JScript supports the use of structures, but not the declaration of new ones.
The AsyncReaderWriterLock.LockHandle type exposes the following members.
Properties
Name | Description | |
---|---|---|
Data | Microsoft internal only. Gets or sets some object associated to this specific lock. | |
Flags | Microsoft internal only. Gets the flags that were passed into this lock. | |
HasReadLock | Microsoft internal only. Determines whether this lock is an active read lock or is nested by one. | |
HasUpgradeableReadLock | Microsoft internal only. Determines whether this lock is an active upgradeable read lock or is nested by one. | |
HasWriteLock | Microsoft internal only. Determines whether this lock is an active write lock or is nested by one. | |
IsActive | Microsoft internal only. Determines whether this lock is still active. | |
IsReadLock | Microsoft internal only. Determines whether this lock represents a read lock. | |
IsUpgradeableReadLock | Microsoft internal only. Determines whether this lock represents an upgradeable read lock. | |
IsValid | Microsoft internal only. Determines whether this handle is to a lock which was actually acquired. | |
IsWriteLock | Microsoft internal only. Determines whether this lock represents a write lock. | |
NestingLock | Microsoft internal only. Gets the lock within which this lock was acquired. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.