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)
Visual Basic (Declaration)
Public Function QueryHistory ( _
path As String, _
version As VersionSpec, _
deletionId As Integer, _
recursion As RecursionType, _
user As String, _
versionFrom As VersionSpec, _
versionTo As VersionSpec, _
maxCount As Integer, _
includeChanges As Boolean, _
slotMode As Boolean _
) As IEnumerable
Dim instance As VersionControlServer
Dim path As String
Dim version As VersionSpec
Dim deletionId As Integer
Dim recursion As RecursionType
Dim user As String
Dim versionFrom As VersionSpec
Dim versionTo As VersionSpec
Dim maxCount As Integer
Dim includeChanges As Boolean
Dim slotMode As Boolean
Dim returnValue As IEnumerable
returnValue = instance.QueryHistory(path, version, deletionId, recursion, user, versionFrom, versionTo, maxCount, includeChanges, slotMode)
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,
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.