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
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- workspaceName 
 Type: System.String- The name of the workspace. 
- workspaceOwner 
 Type: System.String- The owner of the workspace. 
- items
 Type: array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
- itemVersion 
 Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpec- Version spec used for identifying the item. Ignored when ItemSpec is a local item. 
- from 
 Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpec- Version to rollback from. 
- to 
 Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpec- Version to rollback to. 
- rollbackOptions 
 Type: System.Int32- Options, matches up with RollbackOptions enumeration. 
- lockLevel 
 Type: Microsoft.TeamFoundation.VersionControl.Server.LockLevel- The lock to apply to the items involved in the rollback. 
- itemPropertyFilters
 Type: array<System.String[]
- itemAttributeFilters
 Type: array<System.String[]
- maxClientPathLength 
 Type: Microsoft.TeamFoundation.VersionControl.Common.PathLength- The maximum client supported server path length. 
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.