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
Public property Data Microsoft internal only. Gets or sets some object associated to this specific lock.
Public property Flags Microsoft internal only. Gets the flags that were passed into this lock.
Public property HasReadLock Microsoft internal only. Determines whether this lock is an active read lock or is nested by one.
Public property HasUpgradeableReadLock Microsoft internal only. Determines whether this lock is an active upgradeable read lock or is nested by one.
Public property HasWriteLock Microsoft internal only. Determines whether this lock is an active write lock or is nested by one.
Public property IsActive Microsoft internal only. Determines whether this lock is still active.
Public property IsReadLock Microsoft internal only. Determines whether this lock represents a read lock.
Public property IsUpgradeableReadLock Microsoft internal only. Determines whether this lock represents an upgradeable read lock.
Public property IsValid Microsoft internal only. Determines whether this handle is to a lock which was actually acquired.
Public property IsWriteLock Microsoft internal only. Determines whether this lock represents a write lock.
Public property NestingLock Microsoft internal only. Gets the lock within which this lock was acquired.

Top

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Threading Namespace