Edit

Share via


Lock.IsHeldByCurrentThread Property

Definition

Gets a value that indicates whether the lock is held by the current thread.

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

Property Value

true if the current thread holds the lock; otherwise, false.

Applies to