Export (0) Print
Expand All

SqlHierarchyId.CompareTo Method (Object)

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

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

public int CompareTo(
	Object obj
)

Parameters

obj
Type: Object
An object to be compared to this.

Return Value

Type: 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.

Implements

IComparableCompareTo(Object)

Throws an exception if obj is not a SqlHierarchyId node.

This member is sealed.

Community Additions

ADD
Show:
© 2014 Microsoft