Condividi tramite


Lock.IsHeldByCurrentThread Proprietà

Definizione

Ottiene un valore che indica se il blocco viene mantenuto dal thread corrente.

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

Valore della proprietà

true se il thread corrente contiene il blocco; in caso contrario, false.

Si applica a