Export (0) Print
Expand All

VersionControlServer.GetItem Method (Int32, Int32, Boolean)

Gets the Item from the database based on ItemId and Changeset.

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
)
public Item GetItem (
	int itemId, 
	int changesetNumber, 
	boolean includeDownloadInfo
)
public function GetItem (
	itemId : int, 
	changesetNumber : int, 
	includeDownloadInfo : boolean
) : Item

Parameters

itemId

The identifier of the Item.

changesetNumber

The Changeset version to retrieve.

includeDownloadInfo

true to tell the server to include the information that is required to download the files.

Return Value

Returns the Item if the Item was found; otherwise null.

Only set includeDownloadInfo to true if you will download the files by using the returned objects. The call will be faster and require less bandwidth when this parameter is false. The overloaded methods set includeDownloadInfo to false.

Community Additions

ADD
Show:
© 2014 Microsoft