다음을 통해 공유


WorkspaceInfo.IComparable.CompareTo Method

Compares two workspace info objects, first comparing the server names, 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)

Syntax

‘선언
Private Function CompareTo ( _
    obj As Object _
) As Integer Implements IComparable.CompareTo
int IComparable.CompareTo(
    Object obj
)
private:
virtual int CompareTo(
    Object^ obj
) sealed = IComparable::CompareTo
private abstract CompareTo : 
        obj:Object -> int 
private override CompareTo : 
        obj:Object -> int 
JScript does not support explicit interface implementations.

Parameters

  • obj
    Type: System.Object
    the workspace info to which this one will be compared

Return Value

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

Implements

IComparable.CompareTo(Object)

.NET Framework Security

See Also

Reference

WorkspaceInfo Class

Microsoft.TeamFoundation.VersionControl.Client Namespace