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[]
返回的已进行版本管理的项属性列出了与每个 get 操作。
- shelvesetPropertyNameFilters
类型:array<System.String[]
搁置集返回的项属性列出了与搁置集。
- merge
类型:System.Boolean
则为 true,则“合并”应时,将执行取消搁置时。这将文件合并,并且版本的存在冲突等待单个更改和不同的 pended 版本的项目冲突。
- failures
类型:System.Collections.Generic.List<Failure>%
在取消搁置过程中,生成的列表错误和警告。
- getOperations
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>%
返回设置 unshelved 挂起的更改。
- conflicts
类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Conflict>%
由取消搁置操作生成的冲突列表。
- changePendedFlags
类型:System.Int32%
返回值
类型:Microsoft.TeamFoundation.VersionControl.Server.Shelveset
反映客户端状态的 GetOperations 需要的更改。
备注
客户端调用序列:1) 调用 Unshelve()。2) 对于每个 GetOperation 返回:a) 使用应用程序/item.asmx,下载文件?X 是挂起的更改 ID 的 pcid=X,b) 调用 UpdateLocalVersion,通过在本地信息和挂起的更改 ID. 如果中断步骤 2,将来调用 Get() 将返回未确认的项。 搁置集且将保持,在此调用后,但是,可以立即删除,在第 2 步) 完成之前。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。