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[]
    要返回的属性列表获取操作。

返回值

类型: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 安全性

请参见

参考

RepositoryExtensions 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间