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.