TeamFoundationVersionControlService.Rollback 方法 (TeamFoundationRequestContext, String, String, array<ItemSpec[], VersionSpec, VersionSpec, VersionSpec, Int32, LockLevel, array<String[])

劳斯返回在特定树中的更改特定版本的。

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

语法

声明
Public Function Rollback ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    items As ItemSpec(), _
    itemVersion As VersionSpec, _
    from As VersionSpec, _
    to As VersionSpec, _
    rollbackOptions As Integer, _
    lockLevel As LockLevel, _
    itemAttributeFilters As String() _
) As TeamFoundationDataReader
public TeamFoundationDataReader Rollback(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] items,
    VersionSpec itemVersion,
    VersionSpec from,
    VersionSpec to,
    int rollbackOptions,
    LockLevel lockLevel,
    string[] itemAttributeFilters
)

参数

  • rollbackOptions
    类型:System.Int32
    选项,与RollbackOptions枚举。

返回值

类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
的结果TeamFoundationDataReader顺序如下:GetOperation [in] -列表更新的客户端GetOperations。冲突[in] -无法解析的挂起项的列表。则将解析包含回滚操作的详细信息。失败[in] -不回滚的项列表。

.NET Framework 安全性

请参见

参考

TeamFoundationVersionControlService 类

Rollback 重载

Microsoft.TeamFoundation.VersionControl.Server 命名空间