SqlHierarchyId.GetRoot Method ()


Gets a value representing the root SqlHierarchyId node of the hierarchy.

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

[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None, 
	InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true, 
	IsPrecise = true, IsMutator = false)]
public static SqlHierarchyId GetRoot()

Return Value

Type: Microsoft.SqlServer.Types.SqlHierarchyId

A SqlHierarchyId representing the root node of the hierarchical tree.

Root value is typically 0x.

This member is static.

SELECT HierarchyID::GetRoot() ;
Return to top