This documentation is archived and is not being maintained.

VersionControlServer.GetItems Method (ItemSpec[], VersionSpec, DeletedState, ItemType, Boolean)

Retrieves a list of all Items in the database that match the given item specifiers.

Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in microsoft.teamfoundation.versioncontrol.client.dll)

public ItemSet[] GetItems (
	ItemSpec[] itemSpecs,
	VersionSpec version,
	DeletedState deletedState,
	ItemType itemType,
	bool includeDownloadInfo
)
public ItemSet[] GetItems (
	ItemSpec[] itemSpecs, 
	VersionSpec version, 
	DeletedState deletedState, 
	ItemType itemType, 
	boolean includeDownloadInfo
)
public function GetItems (
	itemSpecs : ItemSpec[], 
	version : VersionSpec, 
	deletedState : DeletedState, 
	itemType : ItemType, 
	includeDownloadInfo : boolean
) : ItemSet[]

Parameters

itemSpecs

The item specifiers for the Item or Items being listed that may be on a server or on the local computer.

version

The version being listed.

deletedState

A flag representing whether to return deleted items, non-deleted items, or both.

itemType

A flag representing whether to return files, folders, or both.

includeDownloadInfo

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

Return Value

Returns an array of ItemSet objects that contain collections of matching Items.

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.

Show: