Export (0) Print
Expand All

VersionControlServer.QueryHistory Method (String, VersionSpec, Int32, RecursionType, String, VersionSpec, VersionSpec, Int32, Boolean, Boolean)

Retrieves an enumerable collection of changesets matching the specified items and versions.

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

public IEnumerable QueryHistory (
	string path,
	VersionSpec version,
	int deletionId,
	RecursionType recursion,
	string user,
	VersionSpec versionFrom,
	VersionSpec versionTo,
	int maxCount,
	bool includeChanges,
	bool slotMode
)
public IEnumerable QueryHistory (
	String path, 
	VersionSpec version, 
	int deletionId, 
	RecursionType recursion, 
	String user, 
	VersionSpec versionFrom, 
	VersionSpec versionTo, 
	int maxCount, 
	boolean includeChanges, 
	boolean slotMode
)
public function QueryHistory (
	path : String, 
	version : VersionSpec, 
	deletionId : int, 
	recursion : RecursionType, 
	user : String, 
	versionFrom : VersionSpec, 
	versionTo : VersionSpec, 
	maxCount : int, 
	includeChanges : boolean, 
	slotMode : boolean
) : IEnumerable

Parameters

path
version
deletionId

The unique deletion ID for the item, if it is deleted. If it is not deleted, specify zero.

recursion
user
versionFrom

The start of a version range for which history should be queried. Use a null reference (Nothing in Visual Basic) to start with the first changeset.

versionTo

The end of a version range for which history should be queried. Use a null reference (Nothing in Visual Basic) to end with the latest changeset.

maxCount

The maximum number of history entries that should be returned Use Int32.MaxValue to get all changes.

includeChanges

A flag that, if true, includes the individual item changes with the changesets; otherwise, only changeset metadata is included.

slotMode

A flag that specifies how history entries are searched. If true, the returned history entries may reflect multiple different items that have at one point occupied the requested path in the database. If false, the returned history entries will reflect the single item currently occupying the requested path, regardless of whether it previously occupied the requested path in its historical version.

Return Value

A collection of changeset objects that match the query.

Community Additions

ADD
Show:
© 2014 Microsoft