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的调用序列()类似于签入()。

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

.NET Framework 安全性

请参见

参考

Repository 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间