LockManager.GetLock Method (ILockName, LockManager.LockType, Int64)
Get a named lock.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub GetLock ( _
lockName As ILockName, _
lockType As LockManager.LockType, _
requestId As Long _
)
public void GetLock(
ILockName lockName,
LockManager.LockType lockType,
long requestId
)
public:
void GetLock(
ILockName^ lockName,
LockManager::LockType lockType,
long long requestId
)
member GetLock :
lockName:ILockName *
lockType:LockManager.LockType *
requestId:int64 -> unit
public function GetLock(
lockName : ILockName,
lockType : LockManager.LockType,
requestId : long
)
Parameters
lockName
Type: Microsoft.TeamFoundation.Framework.Server.ILockNameThe name of a lock to acquire.
lockType
Type: Microsoft.TeamFoundation.Framework.Server.LockManager.LockTypeThe lock type to obtain.
- requestId
Type: System.Int64
Remarks
This method tried to use the cached lock object for this name if it is not disposed. Otherwise it allocates a new lock object and updates the cached object reference.
.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.