共用方式為


TeamFoundationLockingService.AcquireLock 方法 (TeamFoundationRequestContext, TeamFoundationLockMode, String)

取得指定資源上具有跨處理序鎖定。

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

語法

'宣告
Public Function AcquireLock ( _
    requestContext As TeamFoundationRequestContext, _
    lockMode As TeamFoundationLockMode, _
    resource As String _
) As TeamFoundationLock
public TeamFoundationLock AcquireLock(
    TeamFoundationRequestContext requestContext,
    TeamFoundationLockMode lockMode,
    string resource
)

參數

傳回值

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

.NET Framework 安全性

請參閱

參考

TeamFoundationLockingService 類別

AcquireLock 多載

Microsoft.TeamFoundation.Framework.Server 命名空間