Share via


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

Test if this thread already holds a lock.

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

Syntax

'Declaration
Public Function TestLock ( _
    lockObject As Object, _
    lockType As LockManager.LockType, _
    requestId As Long _
) As Boolean
public bool TestLock(
    Object lockObject,
    LockManager.LockType lockType,
    long requestId
)
public:
bool TestLock(
    Object^ lockObject, 
    LockManager::LockType lockType, 
    long long requestId
)
member TestLock : 
        lockObject:Object * 
        lockType:LockManager.LockType * 
        requestId:int64 -> bool
public function TestLock(
    lockObject : Object, 
    lockType : LockManager.LockType, 
    requestId : long
) : boolean

Parameters

Return Value

Type: System.Boolean
True if the current thread already holds that lock, false otherwise.

.NET Framework Security

See Also

Reference

LockManager Class

TestLock Overload

Microsoft.TeamFoundation.Framework.Server Namespace