TeamFoundationVersionControlService.Shelve 方法 (TeamFoundationRequestContext, String, String, array<String[], Shelveset, Boolean)
复制到搁置挂起的更改。 将工作区也将保持。
命名空间: Microsoft.TeamFoundation.VersionControl.Server
程序集: Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
语法
声明
Public Function Shelve ( _
requestContext As TeamFoundationRequestContext, _
workspaceName As String, _
workspaceOwner As String, _
serverItems As String(), _
shelveset As Shelveset, _
replace As Boolean _
) As List(Of Failure)
public List<Failure> Shelve(
TeamFoundationRequestContext requestContext,
string workspaceName,
string workspaceOwner,
string[] serverItems,
Shelveset shelveset,
bool replace
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
请求上下文。
- workspaceName
类型:System.String
搁置的工作区的名称。
- workspaceOwner
类型:System.String
工作区的所有者的用户名。
- serverItems
类型:array<System.String[]
列表项搁置。
- shelveset
类型:Microsoft.TeamFoundation.VersionControl.Server.Shelveset
搁置集对象填充元数据(名称、所有者、注释、等等.)。
- replace
类型:System.Boolean
如果为true并且已存在同名的一个搁置集,将被删除。
返回值
类型:System.Collections.Generic.List<Failure>
发生,当尝试搁置时失败的列表。
备注
Shelve的调用序列()类似于签入()。
客户端应:1)调用QueryPendingSets ()。 2) 对于每编辑的文件,上载内容。 3) 调用搁置()和服务器项目列表从1)。 4) 调用UndoPendingChanges (),如果“移动”行为希望。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。