Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 ( _
lockName As ILockName, _
lockType As LockManager.LockType, _
requestId As Long _
)
[ConditionalAttribute("DEBUG")]
public void AssertLockHeld(
ILockName lockName,
LockManager.LockType lockType,
long requestId
)
[ConditionalAttribute(L"DEBUG")]
public:
void AssertLockHeld(
ILockName^ lockName,
LockManager::LockType lockType,
long long requestId
)
[<ConditionalAttribute("DEBUG")>]
member AssertLockHeld :
lockName:ILockName *
lockType:LockManager.LockType *
requestId:int64 -> unit
public function AssertLockHeld(
lockName : ILockName,
lockType : LockManager.LockType,
requestId : long
)
Parameters
lockName
Type: Microsoft.TeamFoundation.Framework.Server.ILockNameThe name of a lock to assert lock for.
lockType
Type: Microsoft.TeamFoundation.Framework.Server.LockManager.LockTypeThe lock type to Test.
- requestId
Type: System.Int64
.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.