SqlHierarchyId.CompareTo Method

Definition

Overloads

CompareTo(SqlHierarchyId)

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

CompareTo(Object)

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

CompareTo(SqlHierarchyId)

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

public int CompareTo (Microsoft.SqlServer.Types.SqlHierarchyId hid);
member this.CompareTo : Microsoft.SqlServer.Types.SqlHierarchyId -> int
Public Function CompareTo (hid As SqlHierarchyId) As Integer

Parameters

hid
SqlHierarchyId

A SqlHierarchyId node to compare to this.

Returns

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: ValueMeaningLess than zerothis is less than obj.Zerothis is equal to obj.Greater than zerothis is greater than obj.

Applies to

CompareTo(Object)

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

public int CompareTo (object obj);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (obj As Object) As Integer

Parameters

obj
Object

An object to be compared to this.

Returns

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: ValueMeaningLess than zerothis is less than obj.Zerothis is equal to obj.Greater than zerothis is greater than obj.

Implements

Applies to