This documentation is archived and is not being maintained.

WorkspaceInfo::IComparable::CompareTo Method

Compares two workspace information objects, first comparing the server names, and then comparing the workspace names, and finally comparing owners.

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

private:
virtual int CompareTo(
	Object^ obj
) sealed = IComparable::CompareTo

Parameters

obj
Type: System::Object

the workspace information to which this one will be compared

Return Value

Type: System::Int32
-1, 0, 1 for this workspace information being less than, equal to, or greater than the specified workspace information, respectively.

Implements

IComparable::CompareTo(Object)

Show: