Share via


LockManager.AssertLockHeld 方法 (ILockName, LockManager.LockType, Int64)

判斷提示指定鎖定由目前執行緒持有 (偵錯判斷提示)。

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
<ConditionalAttribute("DEBUG")> _
Public Sub AssertLockHeld ( _
    lockName As ILockName, _
    lockType As LockManager.LockType, _
    requestId As Long _
)
[ConditionalAttribute("DEBUG")]
public void AssertLockHeld(
    ILockName lockName,
    LockManager.LockType lockType,
    long requestId
)

參數

.NET Framework 安全性

請參閱

參考

LockManager 類別

AssertLockHeld 多載

Microsoft.TeamFoundation.Framework.Server 命名空間