Share via


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

Rolls back changes in a given tree for a specific version range.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
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, _
    itemPropertyFilters As String(), _
    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[] itemPropertyFilters,
    string[] itemAttributeFilters
)
public:
TeamFoundationDataReader^ Rollback(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ workspaceOwner, 
    array<ItemSpec^>^ items, 
    VersionSpec^ itemVersion, 
    VersionSpec^ from, 
    VersionSpec^ to, 
    int rollbackOptions, 
    LockLevel lockLevel, 
    array<String^>^ itemPropertyFilters, 
    array<String^>^ itemAttributeFilters
)
member Rollback : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        workspaceOwner:string * 
        items:ItemSpec[] * 
        itemVersion:VersionSpec * 
        from:VersionSpec * 
        to:VersionSpec * 
        rollbackOptions:int * 
        lockLevel:LockLevel * 
        itemPropertyFilters:string[] * 
        itemAttributeFilters:string[] -> TeamFoundationDataReader
public function Rollback(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    workspaceOwner : String, 
    items : ItemSpec[], 
    itemVersion : VersionSpec, 
    from : VersionSpec, 
    to : VersionSpec, 
    rollbackOptions : int, 
    lockLevel : LockLevel, 
    itemPropertyFilters : String[], 
    itemAttributeFilters : String[]
) : TeamFoundationDataReader

Parameters

  • rollbackOptions
    Type: System.Int32

    Options, matches up with RollbackOptions enum.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader with results in the following order: GetOperation[] - List of GetOperations for updating the client. Conflict[] - The list of pending items that are unresolved. If resolved then contains details of rollback operation. Failure[] - The list of items which did not rollback.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Rollback Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace