Monitor.LockContentionCount 属性

定义

获取尝试锁定监视器时出现争用的次数。

public:
 static property long LockContentionCount { long get(); };
public static long LockContentionCount { get; }
static member LockContentionCount : int64
Public Shared ReadOnly Property LockContentionCount As Long

属性值

尝试获取监视器锁时发生争用的次数。

适用于