This documentation is archived and is not being maintained.

Workspace.PendRename Method (String, String)

Moves or renames a file or directory.

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

public int PendRename(
	string oldPath,
	string newPath


Type: System.String

The current path to the item that is being moved or renamed.

Type: System.String

The new path to the item.

Return Value

Type: System.Int32
The number of items that were moved or renamed.

The oldPath parameter may contain wildcard characters if the target is a directory. The newPath parameter cannot contain wildcard characters. If the target is an existing directory, the source will become a child of the target.