复制到搁置挂起的更改。 更改工作区域仍保持。
命名空间: 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, _
maxClientPathLength As Integer _
) As List(Of Failure)
[WebMethodAttribute]
public List<Failure> Shelve(
string workspaceName,
string workspaceOwner,
string[] serverItems,
Shelveset shelveset,
bool replace,
int maxClientPathLength
)
参数
- workspaceName
类型:System.String
搁置的工作区域的名称。
- workspaceOwner
类型:System.String
工作区域的所有者的用户名。
- serverItems
类型:array<System.String[]
列表项搁置。
- shelveset
类型:Microsoft.TeamFoundation.VersionControl.Server.Shelveset
搁置集对象填充元数据 (名称、所有者、注释等)
- replace
类型:System.Boolean
如果为 true 并且已存在同名的一个搁置集,将被删除。
- maxClientPathLength
类型:System.Int32
最大客户端支持服务器路径长度。
返回值
类型:System.Collections.Generic.List<Failure>
备注
Shelve() 的调用序列类似于 Checkin()。 客户端应:1) 调用每编辑的文件的 QueryPendingSets() 2),内容 3) 调用与服务器项列表的 Shelve() 从 1) 4) 的调用 UndoPendingChanges() 中上载,如果“移动”行为希望。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。