Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Workspace.Rollback Method (String[], RecursionType, VersionSpec, VersionSpec, VersionSpec, LockLevel, RollbackOptions, String[])

Pends a rollback for changes on a certain path, throughout the specified versions.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public GetStatus Rollback(
	string[] paths,
	RecursionType recursion,
	VersionSpec itemSpecVersion,
	VersionSpec versionFrom,
	VersionSpec versionTo,
	LockLevel lockLevel,
	RollbackOptions options,
	string[] itemAttributeFilters
)

Parameters

paths
Type: System.String[]

The array of path filters to apply.

recursion
Type: Microsoft.TeamFoundation.VersionControl.Client.RecursionType

A flag that specifies the type of recursion.

itemSpecVersion
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec

The version spec that identifies the item to which the user is referring.

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.

itemAttributeFilters
Type: System.String[]

The array of properties to include for each Get operation.

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:
© 2015 Microsoft