AsyncReaderWriterLock.IsReadLockHeld Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the caller holds a read lock.
public:
property bool IsReadLockHeld { bool get(); };
public:
property bool IsReadLockHeld { bool get(); };
public bool IsReadLockHeld { get; }
member this.IsReadLockHeld : bool
Public ReadOnly Property IsReadLockHeld As Boolean
Property Value
true
if the caller holds a read lock. false
if any other lock type is held, unless this lock is also nested within the other lock type.
Remarks
This property returns false
if any other lock type is held, unless within that alternate lock type this lock is also nested.