SqlHierarchyId.GetLevel 메서드
Gets a value indicating the level of the SqlHierarchyId node in the hierarchical tree.
네임스페이스: Microsoft.SqlServer.Types
어셈블리: Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)
구문
‘선언
<SqlMethodAttribute(DataAccess := DataAccessKind.None, SystemDataAccess := SystemDataAccessKind.None, _
InvokeIfReceiverIsNull := False, OnNullCall := False, _
IsDeterministic := True, IsPrecise := True, IsMutator := False)> _
Public Function GetLevel As SqlInt16
‘사용 방법
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
반환 값
유형: 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.