Repository4.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(), _
itemPropertyFilters As String(), _
itemAttrbuteFilters As String(), _
shelvesetPropertyNameFilters As String(), _
merge As Boolean, _
<OutAttribute> ByRef failures As List(Of Failure), _
<OutAttribute> ByRef getOperations As StreamingCollection(Of GetOperation), _
<OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict), _
<OutAttribute> ByRef changePendedFlags As Integer _
) As Shelveset
[WebMethodAttribute]
public Shelveset Unshelve(
string shelvesetName,
string shelvesetOwner,
string workspaceName,
string workspaceOwner,
ItemSpec[] items,
string[] itemPropertyFilters,
string[] itemAttrbuteFilters,
string[] shelvesetPropertyNameFilters,
bool merge,
out List<Failure> failures,
out StreamingCollection<GetOperation> getOperations,
out StreamingCollection<Conflict> conflicts,
out int changePendedFlags
)
参数
- shelvesetName
类型:System.String
若要取消搁置搁置集的名称。
- shelvesetOwner
类型:System.String
若要取消搁置搁置集的所有者。
- workspaceName
类型:System.String
要取消搁置到工作区的名称。
- workspaceOwner
类型:System.String
要取消搁置到工作区的所有者。
- items
类型:array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
ItemSpecs (本地、 服务器) 的通配符,递归确定取消搁置。
- itemPropertyFilters
类型:array<System.String[]
- itemAttrbuteFilters
类型:array<System.String[]
与每个返回的版本控制项属性的列表获取操作。
- shelvesetPropertyNameFilters
类型:array<System.String[]
返回与搁置集的搁置集项属性的列表。
- merge
类型:System.Boolean
如果"合并"应执行取消搁置操作时,则为 true。这将文件合并和版本冲突的项的分别冲突的挂起的更改和其他挂起的版本。
- failures
类型:System.Collections.Generic.List<Failure>%
所取消搁置的过程中出现错误和警告的列表。
- getOperations
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>%
返回组取消搁置挂起的更改。
- conflicts
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Conflict>%
取消搁置操作生成的冲突的列表。
- changePendedFlags
类型:System.Int32%
返回值
类型:Microsoft.TeamFoundation.VersionControl.Server.Shelveset
GetOperations 以反映所需的客户端状态更改。
备注
客户端调用序列: 1) 调用 Unshelve()。 对于每个 GetOperation 2) 返回: 下载) 通过使用 application/item.asmx?pcid=X 的文件,其中,X 是挂起的更改 id b) 调用 UpdateLocalVersion,在本地信息和挂起的更改 id 传递。 如果第 2 步被中断,Get() 以后的调用将返回未确认的条目。 搁置集后调用此方法,将保持不变,但可能会被立即删除即使之前,第 2 步) 完成。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。