Partilhar via


Método SqlHierarchyId.GetLevel

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

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

Sintaxe

'Declaração
<SqlMethodAttribute(DataAccess := DataAccessKind.None, SystemDataAccess := SystemDataAccessKind.None,  _
    InvokeIfReceiverIsNull := False, OnNullCall := False,  _
    IsDeterministic := True, IsPrecise := True, IsMutator := False)> _
Public Function GetLevel As SqlInt16
'Uso
Dim instance As SqlHierarchyId 
Dim returnValue As SqlInt16 

returnValue = instance.GetLevel()
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None, 
    InvokeIfReceiverIsNull = false, OnNullCall = false, 
    IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public SqlInt16 GetLevel()
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None, 
    InvokeIfReceiverIsNull = false, OnNullCall = false, 
    IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public:
SqlInt16 GetLevel()
[<SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None, 
    InvokeIfReceiverIsNull = false, OnNullCall = false, 
    IsDeterministic = true, IsPrecise = true, IsMutator = false)>]
member GetLevel : unit -> SqlInt16
public function GetLevel() : SqlInt16

Valor de retorno

Tipo: 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.

Consulte também

Referência

SqlHierarchyId Estrutura

Namespace Microsoft.SqlServer.Types