开发者

How to lock a branch using TFS API in TFS 2010?

开发者 https://www.devze.com 2023-03-20 04:54 出处:网络
Is it pos开发者_如何学运维sible to lock a branch using TFS API in TFS 2010?Workspace.SetLockI am assuming you already know how to connect to TFS and get a specific workspace.

Is it pos开发者_如何学运维sible to lock a branch using TFS API in TFS 2010?


Workspace.SetLock


I am assuming you already know how to connect to TFS and get a specific workspace.

With that said, you would use Workspace.PendEdit for this.

Workspace.PendEdit Method (String[], RecursionType, String, LockLevel)

The enum LockLevel is defined here:

LockLevel Enumeration

This acts the same as the UI if you were to right-click inside of TFS on the branch itself and perform the lock.

0

精彩评论

暂无评论...
验证码 换一张
取 消