This documentation is archived and is not being maintained.

Workspace.IComparable.CompareTo Method

Compares two workspace objects, comparing first the repository URLs, and then the workspace names, and finally the owners.

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

int IComparable.CompareTo(
	Object obj
)

Parameters

obj
Type: System.Object

The workspace to which this workspace will be compared.

Return Value

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

Implements

IComparable.CompareTo(Object)

Show: