Share via


TeamFoundationVersionControlService.Unshelve 方法 (TeamFoundationRequestContext, String, String, String, String, array<ItemSpec[], array<String[], array<String[], array<String[], Boolean, PathLength)

复制搁置更改为工作区域。

命名空间:  Microsoft.TeamFoundation.VersionControl.Server
程序集:  Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

语法

声明
Public Function Unshelve ( _
    requestContext As TeamFoundationRequestContext, _
    shelvesetName As String, _
    shelvesetOwner As String, _
    workspaceName As String, _
    workspaceOwner As String, _
    items As ItemSpec(), _
    itemPropertyFilters As String(), _
    itemAttributeFilters As String(), _
    shelvesetPropertyNameFilters As String(), _
    merge As Boolean, _
    maxClientPathLength As PathLength _
) As TeamFoundationDataReader
public TeamFoundationDataReader Unshelve(
    TeamFoundationRequestContext requestContext,
    string shelvesetName,
    string shelvesetOwner,
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    string[] itemPropertyFilters,
    string[] itemAttributeFilters,
    string[] shelvesetPropertyNameFilters,
    bool merge,
    PathLength maxClientPathLength
)

参数

  • shelvesetName
    类型:System.String
    搁置集的名称取消搁置的。
  • shelvesetOwner
    类型:System.String
    搁置集的所有者取消搁置的。
  • workspaceName
    类型:System.String
    工作区域的名称取消搁置到中。
  • workspaceOwner
    类型:System.String
    工作区域的所有者取消搁置到中。
  • itemAttributeFilters
    类型:array<System.String[]
    列出属性返回与 get 操作。
  • shelvesetPropertyNameFilters
    类型:array<System.String[]
    搁置集属性中返回的对象与搁置集。

返回值

类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
的结果 TeamFoundationDataReader 在下面的排序:搁置集-将所有元数据 Failure[] 通过的搁置集对象 - 防止搁置的列表错误的 GetOperation[] - 反映客户端状态的 GetOperations 需要的更改。

备注

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

.NET Framework 安全性

请参阅

参考

TeamFoundationVersionControlService 类

Unshelve 重载

Microsoft.TeamFoundation.VersionControl.Server 命名空间