This documentation is archived and is not being maintained.

VersionControlServer.GetItem Method (Int32, Int32, Boolean)

Gets an Item from the repository, based on itemId and changesetNumber.

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

public Item GetItem(
	int itemId,
	int changesetNumber,
	bool includeDownloadInfo


Type: System.Int32

Item ID.

Type: System.Int32

Changeset version of the item.

Type: System.Boolean

True to get the information needed to download files. Specify false to save bandwidth if not necessary.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Item
The specified Item. Null if not found.

Only set includeDownloadInfo to true if you are going to be downloading the files using the objects that are returned. The call will be faster and require less bandwidth when includeDownloadInfo is false (default for overloads that don't specify it).