Condividi tramite


TeamFoundationLockingService.AcquireLock Method (TeamFoundationRequestContext, TeamFoundationLockMode, String)

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Dichiarazione
Public Function AcquireLock ( _
    requestContext As TeamFoundationRequestContext, _
    lockMode As TeamFoundationLockMode, _
    resource As String _
) As TeamFoundationLock
public TeamFoundationLock AcquireLock(
    TeamFoundationRequestContext requestContext,
    TeamFoundationLockMode lockMode,
    string resource
)
public:
TeamFoundationLock^ AcquireLock(
    TeamFoundationRequestContext^ requestContext, 
    TeamFoundationLockMode lockMode, 
    String^ resource
)
member AcquireLock : 
        requestContext:TeamFoundationRequestContext * 
        lockMode:TeamFoundationLockMode * 
        resource:string -> TeamFoundationLock 
public function AcquireLock(
    requestContext : TeamFoundationRequestContext, 
    lockMode : TeamFoundationLockMode, 
    resource : String
) : TeamFoundationLock

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationLock

.NET Framework Security

See Also

Reference

TeamFoundationLockingService Class

AcquireLock Overload

Microsoft.TeamFoundation.Framework.Server Namespace