RepositoryExtensions.Unshelve 方法
将搁置的更改合并到工作区副本。
命名空间: Microsoft.TeamFoundation.VersionControl.Server
程序集: Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
语法
声明
<WebMethodAttribute> _
Public Function Unshelve ( _
shelvesetName As String, _
shelvesetOwner As String, _
workspaceName As String, _
workspaceOwner As String, _
items As ItemSpec(), _
<OutAttribute> ByRef failures As List(Of Failure), _
<OutAttribute> ByRef getOperations As StreamingCollection(Of GetOperation), _
propertyNameFilters As String() _
) As Shelveset
[WebMethodAttribute]
public Shelveset Unshelve(
string shelvesetName,
string shelvesetOwner,
string workspaceName,
string workspaceOwner,
ItemSpec[] items,
out List<Failure> failures,
out StreamingCollection<GetOperation> getOperations,
string[] propertyNameFilters
)
参数
- shelvesetName
类型:System.String
若要取消搁置搁置集的名称。
- shelvesetOwner
类型:System.String
若要取消搁置搁置集的所有者。
- workspaceName
类型:System.String
要取消搁置到工作区的名称。
- workspaceOwner
类型:System.String
要取消搁置到工作区的所有者。
- items
类型:array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
ItemSpecs (本地、 服务器) 的通配符,递归确定取消搁置。
- failures
类型:System.Collections.Generic.List<Failure>%
防止取消搁置发生的错误的列表。
- getOperations
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>%
- propertyNameFilters
类型:array<System.String[]
要返回的属性列表获取操作。
返回值
类型:Microsoft.TeamFoundation.VersionControl.Server.Shelveset
GetOperations 以反映所需的客户端状态更改。
备注
客户端调用序列: 1) 调用 Unshelve()。 2) 返回每个 GetOperation:) 下载文件,通过使用 application/item.asmx?pcid=X,其中 X 挂起的更改 id。 b) 调用 UpdateLocalVersion,在本地信息和挂起的更改 id 传递。 如果第 2 步被中断,Get() 以后的调用将返回未确认的条目搁置集后调用此方法,将保持不变,但可能会被立即删除甚至在第 2 步之前) 完成。
如果返回任何故障,所有的操作将失败。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。