SqlHierarchyId.CompareTo 메서드 (SqlHierarchyId)

Returns a value indicating the results of a comparison between two SqlHierarchyId nodes.

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

구문

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

returnValue = instance.CompareTo(hid)
public int CompareTo(
    SqlHierarchyId hid
)
public:
int CompareTo(
    SqlHierarchyId hid
)
member CompareTo : 
        hid:SqlHierarchyId -> int
public function CompareTo(
    hid : SqlHierarchyId
) : 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.

주의

If both SqlHierarchyId nodes are nullnull 참조(Visual Basic에서는 Nothing), returns 0.

If one SqlHierarchyId node is nullnull 참조(Visual Basic에서는 Nothing), it is considered to be less than the non-nullnull 참조(Visual Basic에서는 Nothing) SqlHierarchyId node.

참고 항목

참조

SqlHierarchyId 구조

CompareTo 오버로드

Microsoft.SqlServer.Types 네임스페이스