Location.CompareTo Method (Location)
Applies To: SQL Server 2016 Preview
Compares this Location object with the specified Location object and returns an integer that indicates their relative positions to one another.
Namespace: Microsoft.SqlServer.Management.SqlParser.Parser
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
public int CompareTo(
Location other
)
public:
virtual int CompareTo(
Location other
) sealed
abstract CompareTo :
other:Location -> int
override CompareTo :
other:Location -> int
Public Function CompareTo (
other As Location
) As Integer
Parameters
other
Type: Microsoft.SqlServer.Management.SqlParser.Parser.LocationThe Location object to compare against.
Return Value
Type: System.Int32
An integer that indicates the relative order of the objects being compared. 0 indicates that both objects have the same location. A negative number indicates that this instance precedes the specified Location object and a positive number indicates that this instance follows the specified Location object.
Implements
See Also
Location Structure
Microsoft.SqlServer.Management.SqlParser.Parser Namespace
Return to top