Repository4.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, _
itemPropertyFilters As String(), _
itemAttributeFilters As String(), _
<OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict), _
<OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
<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,
string[] itemPropertyFilters,
string[] itemAttributeFilters,
out StreamingCollection<Conflict> conflicts,
out StreamingCollection<Failure> failures,
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,
array<String^>^ itemPropertyFilters,
array<String^>^ itemAttributeFilters,
[OutAttribute] StreamingCollection<Conflict^>^% conflicts,
[OutAttribute] StreamingCollection<Failure^>^% failures,
[OutAttribute] int% changePendedFlags
)
[<WebMethodAttribute>]
member Rollback :
workspaceName:string *
workspaceOwner:string *
items:ItemSpec[] *
itemVersion:VersionSpec *
from:VersionSpec *
to:VersionSpec *
rollbackOptions:int *
lockLevel:LockLevel *
itemPropertyFilters:string[] *
itemAttributeFilters:string[] *
conflicts:StreamingCollection<Conflict> byref *
failures:StreamingCollection<Failure> byref *
changePendedFlags:int byref -> StreamingCollection<GetOperation>
public function Rollback(
workspaceName : String,
workspaceOwner : String,
items : ItemSpec[],
itemVersion : VersionSpec,
from : VersionSpec,
to : VersionSpec,
rollbackOptions : int,
lockLevel : LockLevel,
itemPropertyFilters : String[],
itemAttributeFilters : String[],
conflicts : StreamingCollection<Conflict>,
failures : StreamingCollection<Failure>,
changePendedFlags : int
) : StreamingCollection<GetOperation>
Parameters
workspaceName
Type: System.StringThe name of the workspace.
workspaceOwner
Type: System.StringThe owner of the workspace.
- items
Type: array<Microsoft.TeamFoundation.VersionControl.Server.ItemSpec[]
- itemVersion
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpec
from
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecVersion to rollback from.
to
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecVersion to rollback to.
rollbackOptions
Type: System.Int32Options, matches up with RollbackOptions enumeration.
lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Server.LockLevelThe lock to apply to the items involved in the rollback.
- itemPropertyFilters
Type: array<System.String[]
itemAttributeFilters
Type: array<System.String[]List of properties to return with get ops.
conflicts
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Conflict>%The list of pending items that are unresolved. If resolved then contains details of rollback operation.
failures
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Failure>%The list of items which did not rollback.
- changePendedFlags
Type: System.Int32%
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
List of GetOperations for updating the client.
.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.