Lock.IsHeldByCurrentThread Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob die Sperre vom aktuellen Thread gehalten wird.

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

Eigenschaftswert

truewenn der aktuelle Thread die Sperre enthält; andernfalls . false

Gilt für: