RepositoryExtensions.Rollback Method

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
<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
)
[WebMethodAttribute]
public:
StreamingCollection<GetOperation^>^ Rollback(
    String^ workspaceName, 
    String^ workspaceOwner, 
    array<ItemSpec^>^ items, 
    VersionSpec^ itemVersion, 
    VersionSpec^ from, 
    VersionSpec^ to, 
    int rollbackOptions, 
    LockLevel lockLevel, 
    [OutAttribute] StreamingCollection<Conflict^>^% conflicts, 
    [OutAttribute] StreamingCollection<Failure^>^% failures, 
    array<String^>^ propertyNameFilters, 
    [OutAttribute] int% changePendedFlags
)
[<WebMethodAttribute>]
member Rollback : 
        workspaceName:string * 
        workspaceOwner:string * 
        items:ItemSpec[] * 
        itemVersion:VersionSpec * 
        from:VersionSpec * 
        to:VersionSpec * 
        rollbackOptions:int * 
        lockLevel:LockLevel * 
        conflicts:StreamingCollection<Conflict> byref * 
        failures:StreamingCollection<Failure> byref * 
        propertyNameFilters:string[] * 
        changePendedFlags:int byref -> StreamingCollection<GetOperation> 
public function Rollback(
    workspaceName : String, 
    workspaceOwner : String, 
    items : ItemSpec[], 
    itemVersion : VersionSpec, 
    from : VersionSpec, 
    to : VersionSpec, 
    rollbackOptions : int, 
    lockLevel : LockLevel, 
    conflicts : StreamingCollection<Conflict>, 
    failures : StreamingCollection<Failure>, 
    propertyNameFilters : String[], 
    changePendedFlags : int
) : StreamingCollection<GetOperation>

Parameters

  • rollbackOptions
    Type: System.Int32

    Options, matches up with RollbackOptions enumeration.

  • propertyNameFilters
    Type: array<System.String[]

    List of properties to return with get operations.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
List of GetOperations for updating the client.

.NET Framework Security

See Also

Reference

RepositoryExtensions Class

Microsoft.TeamFoundation.VersionControl.Server Namespace