VersionSpec.CompareTo Method

Compares two version specs. Sorts by type name followed by version data

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

Syntax

'Declaration
Public Overridable Function CompareTo ( _
    other As VersionSpec _
) As Integer
public virtual int CompareTo(
    VersionSpec other
)
public:
virtual int CompareTo(
    VersionSpec^ other
)
abstract CompareTo : 
        other:VersionSpec -> int  
override CompareTo : 
        other:VersionSpec -> int
public function CompareTo(
    other : VersionSpec
) : int

Parameters

Return Value

Type: System.Int32

Implements

IComparable<T>.CompareTo(T)

.NET Framework Security

See Also

Reference

VersionSpec Class

Microsoft.TeamFoundation.VersionControl.Server Namespace