Workspace.Rollback Method (VersionSpec, VersionSpec, LockLevel, RollbackOptions)
Pends a rollback for all changes between the specified versions.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaração
Public Function Rollback ( _
versionFrom As VersionSpec, _
versionTo As VersionSpec, _
lockLevel As LockLevel, _
options As RollbackOptions _
) As GetStatus
public GetStatus Rollback(
VersionSpec versionFrom,
VersionSpec versionTo,
LockLevel lockLevel,
RollbackOptions options
)
public:
GetStatus^ Rollback(
VersionSpec^ versionFrom,
VersionSpec^ versionTo,
LockLevel lockLevel,
RollbackOptions options
)
member Rollback :
versionFrom:VersionSpec *
versionTo:VersionSpec *
lockLevel:LockLevel *
options:RollbackOptions -> GetStatus
public function Rollback(
versionFrom : VersionSpec,
versionTo : VersionSpec,
lockLevel : LockLevel,
options : RollbackOptions
) : GetStatus
Parameters
- versionFrom
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The version to roll back from (later version).
- versionTo
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The version to rolling back to (earlier version).
- lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel
The version to rolling back to (earlier version).
- options
Type: Microsoft.TeamFoundation.VersionControl.Common.RollbackOptions
Options to use.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
A GetStatus object describing the number of operations, conflicts, errors, etc. that occurred while processing the Rollback operation.
.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.