다음을 통해 공유


CompareTo 메서드

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

네임스페이스:  Microsoft.SqlServer.Management.Dac
어셈블리:  Microsoft.SqlServer.Management.Dac(Microsoft.SqlServer.Management.Dac.dll)

구문

‘선언
Public Function CompareTo ( _
    other As Location _
) As Integer
‘사용 방법
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

매개 변수

반환 값

유형: 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.

구현

IComparable< (Of < ( <'T> ) > ) >. . :: . .CompareTo(T)