Share via


TeamFoundationLockingService.AcquireLock Method (TeamFoundationRequestContext, TeamFoundationLockInfo)

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

Syntax

'宣言
Public Function AcquireLock ( _
    requestContext As TeamFoundationRequestContext, _
    lockInfo As TeamFoundationLockInfo _
) As TeamFoundationLock
public TeamFoundationLock AcquireLock(
    TeamFoundationRequestContext requestContext,
    TeamFoundationLockInfo lockInfo
)
public:
TeamFoundationLock^ AcquireLock(
    TeamFoundationRequestContext^ requestContext, 
    TeamFoundationLockInfo^ lockInfo
)
member AcquireLock : 
        requestContext:TeamFoundationRequestContext * 
        lockInfo:TeamFoundationLockInfo -> TeamFoundationLock 
public function AcquireLock(
    requestContext : TeamFoundationRequestContext, 
    lockInfo : TeamFoundationLockInfo
) : 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