SqlHierarchyId.GetLevel Method ()

 

Gets a value indicating the level of the SqlHierarchyId node in the hierarchical tree.

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 SqlInt16 GetLevel()

Return Value

Type: System.Data.SqlTypes.SqlInt16

A 16-bit integer indicating the depth of the SqlHierarchyId node in the hierarchical tree.

The root of the hierarchy is level 0.

Return to top
Show: