다음을 통해 공유


SqlHierarchyId.CompareTo 메서드 (Object)

Returns a value indicating the results of a comparison between a SqlHierarchyId and an object.

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

구문

‘선언
Public Function CompareTo ( _
    obj As Object _
) As Integer
‘사용 방법
Dim instance As SqlHierarchyId 
Dim obj As Object 
Dim returnValue As Integer 

returnValue = instance.CompareTo(obj)
public int CompareTo(
    Object obj
)
public:
virtual int CompareTo(
    Object^ obj
) sealed
abstract CompareTo : 
        obj:Object -> int  
override CompareTo : 
        obj:Object -> int
public final function CompareTo(
    obj : Object
) : int

매개 변수

반환 값

유형: System.Int32
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:

Value

Meaning

Less than zero

this is less than obj.

Zero

this is equal to obj.

Greater than zero

this is greater than obj.

구현

IComparable.CompareTo(Object)

주의

Throws an exception if obj is not a SqlHierarchyId node.

This member is sealed.

참고 항목

참조

SqlHierarchyId 구조

CompareTo 오버로드

Microsoft.SqlServer.Types 네임스페이스