Export (0) Print
Expand All

VersionControlServer.GetItems Method (Int32[], Int32)

Every file and folder on the server that is running Team Foundation Server has a unique ID assigned. This method allows you to get one or more Item objects for old versions of files or folders, based on the changeset those versions were part of, but download information is not included. Without download information the function call is faster, but if you want to download files, you should use one of the overload methods that will allow you to get download information with the returned items.

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

public Item[] GetItems(
	int[] itemIds,
	int changesetNumber
)

Parameters

itemIds
Type: System.Int32[]
changesetNumber
Type: System.Int32

The changeset that included these items. Note that you are passing many items, but you only review one changeset. This method is useful for you to get many items that were all part of the same changeset.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Item[]
Returns an array of Item objects that correspond to the passed itemIDs. (So the first Item object corresponds to the first itemId, and continues in this pattern.) If an item cannot be found for a specific itemId and changeset, then the corresponding element in the item output array will be null.

If an item cannot be found for a specific ItemId and Changeset then the corresponding element in the item output array will be null.

Community Additions

ADD
Show:
© 2015 Microsoft