LockManager.ReleaseLock Method (ILockName, LockManager.LockType, Int64)
Release a named lock.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub ReleaseLock ( _
lockName As ILockName, _
lockType As LockManager.LockType, _
requestId As Long _
)
public void ReleaseLock(
ILockName lockName,
LockManager.LockType lockType,
long requestId
)
public:
void ReleaseLock(
ILockName^ lockName,
LockManager::LockType lockType,
long long requestId
)
member ReleaseLock :
lockName:ILockName *
lockType:LockManager.LockType *
requestId:int64 -> unit
public function ReleaseLock(
lockName : ILockName,
lockType : LockManager.LockType,
requestId : long
)
Parameters
lockName
Type: Microsoft.TeamFoundation.Framework.Server.ILockNameThe name of a lock to release.
lockType
Type: Microsoft.TeamFoundation.Framework.Server.LockManager.LockTypeThe lock type to release.
- requestId
Type: System.Int64
Remarks
This method tried to use the cached lock object for this name if it is available. Otherwise it allocates a new lock object and updates the cached object reference. Cached lock object must not be disposed! E.g. it should be the same object that was used for or returned from corresponding GetLock.
.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.