Location.CompareTo Method

Compares two Location objects and returns the difference in the line numbers.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Declaration
Public Function CompareTo ( _
    other As Location _
) As Integer
'Usage
Dim instance As Location
Dim other As Location
Dim returnValue As Integer

returnValue = instance.CompareTo(other)
public int CompareTo(
    Location other
)
public:
virtual int CompareTo(
    Location other
) sealed
abstract CompareTo : 
        other:Location -> int 
override CompareTo : 
        other:Location -> int 
public final function CompareTo(
    other : Location
) : int

Parameters

Return Value

Type: System.Int32
A Int32 value that specifies the difference between the line numbers of the specified Location and the current Location. If the line numbers of both locations are equal, the difference in the column numbers will be returned instead.

Implements

IComparable<T>.CompareTo(T)

See Also

Reference

Location Structure

Microsoft.SqlServer.Management.Dac Namespace