VersionControlServer.GetLatestChangesetId Method

When a user adds, deletes, edits, branches or merges files, these changes are made in his workspace only. When a user checks in files, all these changes become one changeset which is automically updated on the server to be available to other users. That changeset is associated with a changeset ID which acts as a version number for every updated item.This function gets the changeset ID for the most recent changeset on the server that is running Team Foundation Server. The returned value can be passed to GetChangeset() to get all the details on that particular changeset.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Function GetLatestChangesetId As Integer
'Usage
Dim instance As VersionControlServer 
Dim returnValue As Integer 

returnValue = instance.GetLatestChangesetId()
public int GetLatestChangesetId()
public:
int GetLatestChangesetId()
public function GetLatestChangesetId() : int

Return Value

Type: System.Int32
Returns the latest Changeset ID.
ChangesetId

Remarks

Call GetChangeset with the result of this method to get the Changeset object that has the details, if it is needed.

.NET Framework Security

See Also

Reference

VersionControlServer Class

VersionControlServer Members

Microsoft.TeamFoundation.VersionControl.Client Namespace