LockManager.AssertLockHeld Method (ILockName, LockManager.LockType, Int64)

Assert that the given lock is 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 AssertLockHeld ( _
    lockName As ILockName, _
    lockType As LockManager.LockType, _
    requestId As Long _
public void AssertLockHeld(
    ILockName lockName,
    LockManager.LockType lockType,
    long requestId
void AssertLockHeld(
    ILockName^ lockName, 
    LockManager::LockType lockType, 
    long long requestId
member AssertLockHeld : 
        lockName:ILockName * 
        lockType:LockManager.LockType * 
        requestId:int64 -> unit
public function AssertLockHeld(
    lockName : ILockName, 
    lockType : LockManager.LockType, 
    requestId : long


.NET Framework Security

See Also


LockManager Class

AssertLockHeld Overload

Microsoft.TeamFoundation.Framework.Server Namespace