SqlHierarchyId Methods

Include Protected Members
Include Inherited Members

The SqlHierarchyId type exposes the following members.

Methods

  Name Description
Public method CompareTo(Object) Returns a value indicating the results of a comparison between a SqlHierarchyId and an object.
Public method CompareTo(SqlHierarchyId) Returns a value indicating the results of a comparison between two SqlHierarchyId nodes.
Public method Equals Evaluates whether SqlHierarchyId and obj are equal. (Overrides ValueType.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetAncestor Retrieves the SqlHierarchyId node n levels up the hierarchical tree.
Public method GetDescendant Gets the value of a descendant SqlHierarchyId node that is greater than child1 and less than child2.
Public method GetHashCode Gets a hash of the path from the root node of the hierarchy tree to the SqlHierarchyId node. (Overrides ValueType.GetHashCode().)
Public method GetLevel Gets a value indicating the level of the SqlHierarchyId node in the hierarchical tree.
Public method GetReparentedValue Gets a value representing the location of a new SqlHierarchyId node that has a path from newRoot equal to the path from oldRoot to this, effectively moving this to the new location.
Public methodStatic member GetRoot Gets a value representing the root SqlHierarchyId node of the hierarchy.
Public method GetType (Inherited from Object.)
Public method IsDescendantOf Gets a value indicating whether the SqlHierarchyId node is the descendant of the parent.
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member Parse Converts the canonical string representation of a SqlHierarchyId node to a SqlHierarchyId value.
Public method Read Reads from a specified binary reader into a SqlHierarchyId.
Public method ToString Returns the canonical string representation of a SqlHierarchyId node from a SqlHierarchyId value. (Overrides ValueType.ToString().)
Public method Write Writes a SqlHierarchyId to a specified binary writer.

Top

See Also

Reference

SqlHierarchyId Structure

Microsoft.SqlServer.Types Namespace