System.Threading.Lock sealed class Lock Documentation Code public struct Scope public bool IsHeldByCurrentThread { get; } public Lock() public void Enter() public Scope EnterScope() public void Exit() public bool TryEnter() public bool TryEnter(TimeSpan timeout) public bool TryEnter(int millisecondsTimeout)