다음을 통해 공유


SqlHierarchyId.GetLevel Method

Definition

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

[Microsoft.SqlServer.Server.SqlMethod(DataAccess=Microsoft.SqlServer.Server.DataAccessKind.None, InvokeIfReceiverIsNull=false, IsDeterministic=true, IsMutator=false, IsPrecise=true, OnNullCall=false, SystemDataAccess=Microsoft.SqlServer.Server.SystemDataAccessKind.None)]
public System.Data.SqlTypes.SqlInt16 GetLevel ();
[<Microsoft.SqlServer.Server.SqlMethod(DataAccess=Microsoft.SqlServer.Server.DataAccessKind.None, InvokeIfReceiverIsNull=false, IsDeterministic=true, IsMutator=false, IsPrecise=true, OnNullCall=false, SystemDataAccess=Microsoft.SqlServer.Server.SystemDataAccessKind.None)>]
member this.GetLevel : unit -> System.Data.SqlTypes.SqlInt16
Public Function GetLevel () As SqlInt16

Returns

A 16-bit integer indicating the depth of the SqlHierarchyId node in the hierarchical tree. The root of the hierarchy is level 0.

Attributes

Applies to