Share via


TeamFoundationLockingService.AcquireLock 方法 (TeamFoundationRequestContext, TeamFoundationLockInfo)

取得指定資源的跨處理序鎖定。

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Public Function AcquireLock ( _
    requestContext As TeamFoundationRequestContext, _
    lockInfo As TeamFoundationLockInfo _
) As TeamFoundationLock
public TeamFoundationLock AcquireLock(
    TeamFoundationRequestContext requestContext,
    TeamFoundationLockInfo lockInfo
)

參數

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationLock
在這個資源的鎖定。這個鎖定,而必須釋放時,應該加以設定。

.NET Framework 安全性

請參閱

參考

TeamFoundationLockingService 類別

AcquireLock 多載

Microsoft.TeamFoundation.Framework.Server 命名空間