Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Monitor.LockContentionCount Property

Definition

Namespace:
System.Threading
Assemblies:
netstandard.dll, System.Threading.dll
Assembly:
System.Threading.dll
Source:
Monitor.CoreCLR.cs
Source:
Monitor.cs
Source:
Monitor.CoreCLR.cs
Source:
Monitor.CoreCLR.cs
Source:
Monitor.CoreCLR.cs

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


Feedback

Was this page helpful?