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 Function GetBranchHistory ( _
    itemSpecs As ItemSpec(), _
    version As VersionSpec _
) As BranchHistoryTreeItem()()
Dim instance As VersionControlServer 
Dim itemSpecs As ItemSpec()
Dim version As VersionSpec 
Dim returnValue As BranchHistoryTreeItem()()

returnValue = instance.GetBranchHistory(itemSpecs, _
public BranchHistoryTreeItem[][] GetBranchHistory(
    ItemSpec[] itemSpecs,
    VersionSpec version
array<array<BranchHistoryTreeItem^>^>^ GetBranchHistory(
    array<ItemSpec^>^ itemSpecs, 
    VersionSpec^ version
public function GetBranchHistory(
    itemSpecs : ItemSpec[], 
    version : VersionSpec
) : BranchHistoryTreeItem[][]


Return Value

Type: array<array<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.

.NET Framework Security

See Also


VersionControlServer Class

VersionControlServer Members

Microsoft.TeamFoundation.VersionControl.Client Namespace