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

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

See Also

Reference

LockManager Class

ReleaseLock Overload

Microsoft.TeamFoundation.Framework.Server Namespace