TeamFoundationLockingService.AcquireLock Method (TeamFoundationRequestContext, TeamFoundationLockMode, String, Int32)
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function AcquireLock ( _
requestContext As TeamFoundationRequestContext, _
lockMode As TeamFoundationLockMode, _
resource As String, _
lockTimeout As Integer _
) As TeamFoundationLock
public TeamFoundationLock AcquireLock(
TeamFoundationRequestContext requestContext,
TeamFoundationLockMode lockMode,
string resource,
int lockTimeout
)
public:
TeamFoundationLock^ AcquireLock(
TeamFoundationRequestContext^ requestContext,
TeamFoundationLockMode lockMode,
String^ resource,
int lockTimeout
)
member AcquireLock :
requestContext:TeamFoundationRequestContext *
lockMode:TeamFoundationLockMode *
resource:string *
lockTimeout:int -> TeamFoundationLock
public function AcquireLock(
requestContext : TeamFoundationRequestContext,
lockMode : TeamFoundationLockMode,
resource : String,
lockTimeout : int
) : TeamFoundationLock
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- resource
Type: System.String
- lockTimeout
Type: System.Int32
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationLock
.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.