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)

Syntax

'Declaration
Public Function GetBranchHistory ( _
    itemSpecs As ItemSpec(), _
    version As VersionSpec _
) As BranchHistoryTreeItem()()
'Usage
Dim instance As VersionControlServer 
Dim itemSpecs As ItemSpec()
Dim version As VersionSpec 
Dim returnValue As BranchHistoryTreeItem()()

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

Parameters

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.

Remarks

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

.NET Framework Security

See Also

Reference

VersionControlServer Class

VersionControlServer Members

Microsoft.TeamFoundation.VersionControl.Client Namespace