RepositoryExtensions.Rollback 方法

在给定的目录树的特定版本范围中回退更改。

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

语法

声明
<WebMethodAttribute> _
Public Function Rollback ( _
    workspaceName As String, _
    workspaceOwner As String, _
    items As ItemSpec(), _
    itemVersion As VersionSpec, _
    from As VersionSpec, _
    to As VersionSpec, _
    rollbackOptions As Integer, _
    lockLevel As LockLevel, _
    <OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict), _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
    propertyNameFilters As String(), _
    <OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> Rollback(
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    VersionSpec itemVersion,
    VersionSpec from,
    VersionSpec to,
    int rollbackOptions,
    LockLevel lockLevel,
    out StreamingCollection<Conflict> conflicts,
    out StreamingCollection<Failure> failures,
    string[] propertyNameFilters,
    out int changePendedFlags
)

参数

  • rollbackOptions
    类型:System.Int32
    选项,符合 RollbackOptions 枚举。
  • propertyNameFilters
    类型:array<System.String[]
    要返回的属性列表获取操作。

返回值

类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
更新客户端的 GetOperations 的列表。

.NET Framework 安全性

请参见

参考

RepositoryExtensions 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间