AsyncReaderWriterLock.CanCurrentThreadHoldActiveLock 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 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.