Export (0) Print
Expand All

Workspace.Undo Method (ItemSpec[], Boolean, Boolean, String[], String[])

Visual Studio 2013

Undo the pending changes for the specified items. The items may contain wildcards.

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

public int Undo(
	ItemSpec[] itemSpecs,
	bool updateDisk,
	bool deleteAdds,
	string[] itemAttributeFilters,
	string[] itemPropertyFilters
)

Parameters

itemSpecs
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[]

the items for which to undo pending changes

updateDisk
Type: System.Boolean

if true, update the items on disk for the undo; otherwise, the disk is not modified

deleteAdds
Type: System.Boolean

determines if adds should be deleted.

itemAttributeFilters
Type: System.String[]
itemPropertyFilters
Type: System.String[]

Return Value

Type: System.Int32
returns the number of undone changes

Show:
© 2014 Microsoft