MoveBranch Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ICommonStructureService.MoveBranch Method

Moves a node, along with the entire branch below the node, to a new position in the hierarchy

Namespace:  Microsoft.TeamFoundation.Server
Assembly:  Microsoft.TeamFoundation (in Microsoft.TeamFoundation.dll)

void MoveBranch(
	string nodeUri,
	string newParentNodeUri


Type: System.String

The URI of the node to be moved

Type: System.String

The URI of the new parent

The type of the moved node must be appropriate to be a child of the new parent, and the new parent cannot be in the branch below the moved node. The effects on tools that hold pathnames is equivalent to the effects of RenameNode, above. There are additional effects on tools that infer information from the parentage of the node. For example, Currituck might derive security from a node, and it’s parentage in the hierarchy. Tools that hold only URIs do not need to respond to CSS change events that occur for MoveNode.

© 2015 Microsoft