LockManager.AssertLockHeld Method (Object, 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)

Syntax

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

Parameters

  • lockObject
    Type: System.Object

    The lock object to assert lock for.

.NET Framework Security

See Also

Reference

LockManager Class

AssertLockHeld Overload

Microsoft.TeamFoundation.Framework.Server Namespace