LockManager.AssertLockNotHeld Method (Object, LockManager.LockType, Int64)

Assert that the given lock is not held by the current thread (debug assert).

Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)


<ConditionalAttribute("DEBUG")> _
Public Sub AssertLockNotHeld ( _
    lockObject As Object, _
    lockType As LockManager.LockType, _
    requestId As Long _
public void AssertLockNotHeld(
    Object lockObject,
    LockManager.LockType lockType,
    long requestId
void AssertLockNotHeld(
    Object^ lockObject, 
    LockManager::LockType lockType, 
    long long requestId
member AssertLockNotHeld : 
        lockObject:Object * 
        lockType:LockManager.LockType * 
        requestId:int64 -> unit
public function AssertLockNotHeld(
    lockObject : Object, 
    lockType : LockManager.LockType, 
    requestId : long


  • lockObject
    Type: System.Object

    The lock object to assert lock for.

.NET Framework Security

See Also


LockManager Class

AssertLockNotHeld Overload

Microsoft.TeamFoundation.Framework.Server Namespace