This documentation is archived and is not being maintained.

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)

public:
GetStatus^ Rollback(
	VersionSpec^ versionFrom, 
	VersionSpec^ versionTo, 
	LockLevel lockLevel, 
	RollbackOptions options
)

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 roll back to (earlier version).

lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client::LockLevel

The lock level to apply to each item that is being rolled back.

options
Type: Microsoft.TeamFoundation.VersionControl.Common::RollbackOptions

Options to use.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client::GetStatus
A GetStatus object that indicates how many operations, conflicts, errors, and so on occurred when the Get operation was being processed.

Show: