Share via


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

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

Parameters

  • rollbackOptions
    Type: System.Int32

    Options, matches up with RollbackOptions enumeration.

Return Value

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

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Rollback Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace