IntentLock.TryEnterLock Method
Enters the current lock with the requested mode
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function TryEnterLock ( _
requestedlockMode As LockMode, _
request As Long, _
timeout As TimeSpan _
) As Boolean
public bool TryEnterLock(
LockMode requestedlockMode,
long request,
TimeSpan timeout
)
public:
bool TryEnterLock(
LockMode requestedlockMode,
long long request,
TimeSpan timeout
)
member TryEnterLock :
requestedlockMode:LockMode *
request:int64 *
timeout:TimeSpan -> bool
public function TryEnterLock(
requestedlockMode : LockMode,
request : long,
timeout : TimeSpan
) : boolean
Parameters
- requestedlockMode
Type: Microsoft.TeamFoundation.Framework.Server.LockMode
- request
Type: System.Int64
- timeout
Type: System.TimeSpan
Return Value
Type: System.Boolean
Returns 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.