Megosztás a következőn keresztül:


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

Return Value

Type: System.Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

IntentLock Class

Microsoft.TeamFoundation.Framework.Server Namespace