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
lockObject
Type: System.ObjectThe lock object to test.
lockType
Type: Microsoft.TeamFoundation.Framework.Server.LockManager.LockTypeThe lock type to test.
- requestId
Type: System.Int64
Return Value
Type: System.Boolean
True if the current thread already holds that lock, false otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.