Compartir a través de


SqlHierarchyId.GetLevel Método

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

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<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 devuelto

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.

Vea también

Referencia

SqlHierarchyId Estructura

Espacio de nombres Microsoft.SqlServer.Types