LockManager.TryGetLock Method (ILockName, LockManager.LockType, Int64, Int32)
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function TryGetLock ( _
lockName As ILockName, _
lockType As LockManager.LockType, _
requestId As Long, _
millisecondsTimeout As Integer _
) As Boolean
public bool TryGetLock(
ILockName lockName,
LockManager.LockType lockType,
long requestId,
int millisecondsTimeout
)
public:
bool TryGetLock(
ILockName^ lockName,
LockManager::LockType lockType,
long long requestId,
int millisecondsTimeout
)
member TryGetLock :
lockName:ILockName *
lockType:LockManager.LockType *
requestId:int64 *
millisecondsTimeout:int -> bool
public function TryGetLock(
lockName : ILockName,
lockType : LockManager.LockType,
requestId : long,
millisecondsTimeout : int
) : boolean
Parameters
- lockName
Type: Microsoft.TeamFoundation.Framework.Server.ILockName
- requestId
Type: System.Int64
- millisecondsTimeout
Type: System.Int32
Return Value
Type: System.Boolean
.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.