Lue englanniksi Muokkaa

Jaa


Lock.IsHeldByCurrentThread Property

Definition

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

C#
public bool IsHeldByCurrentThread { get; }

Property Value

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

Applies to

Tuote Versiot
.NET 9, 10