Export (0) Print
Expand All

VersionControlServer.GetItems Method (String, VersionSpec, RecursionType, DeletedState, ItemType)

Retrieves a list of all Items in the database that match the specified path and version.

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

public ItemSet GetItems (
	string path,
	VersionSpec version,
	RecursionType recursion,
	DeletedState deletedState,
	ItemType itemType
)
public ItemSet GetItems (
	String path, 
	VersionSpec version, 
	RecursionType recursion, 
	DeletedState deletedState, 
	ItemType itemType
)
public function GetItems (
	path : String, 
	version : VersionSpec, 
	recursion : RecursionType, 
	deletedState : DeletedState, 
	itemType : ItemType
) : ItemSet

Parameters

path

The path of the Item or Items being listed that may be on a server or on the local computer.

version

The version being listed.

recursion

A flag that indicates the items should be listed in the subfolders of path.

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.

Return Value

Returns an ItemSet that contains a collection of matching Items.

If the path argument is a file, returns a set of Items that contain just that file. If the path is a folder, returns a set of Items that contain all items in that folder. If the path contains a wildcard character, returns a set of Items in the specified folder that match the wildcard.

Community Additions

ADD
Show:
© 2015 Microsoft