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
Expand Minimize
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.

VersionControlServer.GetBranchHistory Method

Returns the branch history for the requested items.

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

public BranchHistoryTreeItem[][] GetBranchHistory(
	ItemSpec[] itemSpecs,
	VersionSpec version


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

The version of the items to get branch histories. Use VersionSpec.Latest to query for the current versions.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.BranchHistoryTreeItem[][]
Returns a jagged array of BranchHistoryTreeItem objects. The first array contains all the objects that correspond to the first passed ItemSpec object and continues in the same pattern. (Each ItemSpec may require an array of different BranchHistoryTreeItem objects because it may include wildcards.) The BranchHistoryTreeItem shows you an item's branch parent and a list of its branch children, so the tree can be traversed in either direction.

For each input ItemSpec, there is an associated BranchHistoryTreeItem[] in the output array.

Community Additions

© 2015 Microsoft