SqlHierarchyId.GetRoot 方法
Gets a value representing the root SqlHierarchyId node of the hierarchy.
命名空間: 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 Shared Function GetRoot As SqlHierarchyId
'用途
Dim returnValue As SqlHierarchyId
returnValue = SqlHierarchyId.GetRoot()
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public static SqlHierarchyId GetRoot()
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public:
static SqlHierarchyId GetRoot()
[<SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)>]
static member GetRoot : unit -> SqlHierarchyId
public static function GetRoot() : SqlHierarchyId
傳回值
型別:Microsoft.SqlServer.Types.SqlHierarchyId
A SqlHierarchyId representing the root node of the hierarchical tree.Root value is typically 0x.
備註
This member is static.
範例
SELECT HierarchyID::GetRoot() ;