LockManager.AssertNoLocksHeld Method (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)

Syntax

'Declaration
<ConditionalAttribute("DEBUG")> _
Public Sub AssertNoLocksHeld ( _
    lockType As LockManager.LockType, _
    requestId As Long _
)
[ConditionalAttribute("DEBUG")]
public void AssertNoLocksHeld(
    LockManager.LockType lockType,
    long requestId
)
[ConditionalAttribute(L"DEBUG")]
public:
void AssertNoLocksHeld(
    LockManager::LockType lockType, 
    long long requestId
)
[<ConditionalAttribute("DEBUG")>]
member AssertNoLocksHeld : 
        lockType:LockManager.LockType * 
        requestId:int64 -> unit
public function AssertNoLocksHeld(
    lockType : LockManager.LockType, 
    requestId : long
)

Parameters

.NET Framework Security

See Also

Reference

LockManager Class

AssertNoLocksHeld Overload

Microsoft.TeamFoundation.Framework.Server Namespace