Repository.Shelve 方法

复制到搁置挂起的更改。 更改工作区域也将保持。

命名空间:  Microsoft.TeamFoundation.VersionControl.Server
程序集:  Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

语法

声明
<WebMethodAttribute> _
Public Function Shelve ( _
    workspaceName As String, _
    workspaceOwner As String, _
    serverItems As String(), _
    shelveset As Shelveset, _
    replace As Boolean _
) As List(Of Failure)
[WebMethodAttribute]
public List<Failure> Shelve(
    string workspaceName,
    string workspaceOwner,
    string[] serverItems,
    Shelveset shelveset,
    bool replace
)

参数

  • workspaceName
    类型:System.String
    搁置的工作区域的名称。
  • workspaceOwner
    类型:System.String
    工作区域的所有者的用户名。
  • replace
    类型:System.Boolean
    如果为 true 并且已存在同名的一个搁置集,将被删除。

返回值

类型:System.Collections.Generic.List<Failure>

备注

Shelve() 的调用序列类似于 Checkin()。

客户端应:1) 调用 QueryPendingSets()。2) 对于每编辑的文件,上载内容。3) 调用与服务器项列表的 Shelve() 从 1)。4),如果“移动”行为需要,请调用 UndoPendingChanges()。

.NET Framework 安全性

请参阅

参考

Repository 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间