SqlHierarchyId.GetLevel Method ()
Applies To: SQL Server 2016 Preview
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)
Syntax
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true,
IsPrecise = true, IsMutator = false)]
public SqlInt16 GetLevel()
public:
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true,
IsPrecise = true, IsMutator = false)]
SqlInt16 GetLevel()
[<SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true,
IsPrecise = true, IsMutator = false)>]
member GetLevel : unit -> SqlInt16
<SqlMethodAttribute(DataAccess := DataAccessKind.None, SystemDataAccess := SystemDataAccessKind.None,
InvokeIfReceiverIsNull := False, OnNullCall := False, IsDeterministic := True,
IsPrecise := True, IsMutator := False)>
Public Function GetLevel As SqlInt16
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.
See Also
SqlHierarchyId Structure
Microsoft.SqlServer.Types Namespace
Return to top