AsyncReaderWriterLock.CanCurrentThreadHoldActiveLock Property

Definition

Gets a value indicating whether the current thread is allowed to hold an active lock.

protected:
 virtual property bool CanCurrentThreadHoldActiveLock { bool get(); };
protected:
 virtual property bool CanCurrentThreadHoldActiveLock { bool get(); };
protected virtual bool CanCurrentThreadHoldActiveLock { get; }
member this.CanCurrentThreadHoldActiveLock : bool
Protected Overridable ReadOnly Property CanCurrentThreadHoldActiveLock As Boolean

Property Value

Remarks

The default implementation of this property returns true when the calling thread is NOT an STA thread. This property may be overridden to return false on threads that may compromise the integrity of the lock.

Applies to