Monitor.LockContentionCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of times there was contention when trying to take the monitor's lock.
public:
static property long LockContentionCount { long get(); };
public static long LockContentionCount { get; }
static member LockContentionCount : int64
Public Shared ReadOnly Property LockContentionCount As Long
Property Value
The number of times there was contention when trying to take the monitor's lock.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.