This documentation is archived and is not being maintained.

Workspace::Undo Method (array<ItemSpec>, Boolean)

Revert the pending changes for the specified items.

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

public:
int Undo(
	array<ItemSpec^>^ itemSpecs, 
	bool updateDisk
)

Parameters

itemSpecs
Type: array<Microsoft.TeamFoundation.VersionControl.Client::ItemSpec>

The array of item specifiers for which to revert pending changes.

updateDisk
Type: System::Boolean

True to update the items on the local disk for the Undo operation. False not to modify the disk.

Return Value

Type: System::Int32
The number of reverted changes.

Show: