Share via


AsyncReaderWriterLock.IsWriteLockHeld Property

Definition

Gets a value indicating whether the caller holds a write lock.

public:
 property bool IsWriteLockHeld { bool get(); };
public:
 property bool IsWriteLockHeld { bool get(); };
public bool IsWriteLockHeld { get; }
member this.IsWriteLockHeld : bool
Public ReadOnly Property IsWriteLockHeld As Boolean

Property Value

true if the caller holds a write 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.

Applies to