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
    工作区域的所有者取消搁置到中。
  • propertyNameFilters
    类型:array<System.String[]
    列出属性返回与 get 操作。

返回值

类型:Microsoft.TeamFoundation.VersionControl.Server.Shelveset
反映客户端状态的 GetOperations 需要的更改。

备注

客户端调用序列:1) 调用 Unshelve()。2) 对于每个 GetOperation 返回:a) 使用应用程序/item.asmx,下载文件?X 是挂起的更改 ID. b 的 pcid=X 调用 UpdateLocalVersion,通过在本地信息和挂起的更改 ID. 如果中断步骤 2,将来调用 Get() 将返回搁置集且将保持中未确认项,在此调用后,但是,可以立即删除,在第 2 步) 完成之前。

如果所有失败,将返回所有操作将失败。

.NET Framework 安全性

请参阅

参考

RepositoryExtensions 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间