语言

SqlHierarchyId.GetReparentedValue(SqlHierarchyId, SqlHierarchyId) 方法

定义

获取一个值,该值表示新节点的位置 SqlHierarchyId ,该节点的路径从 newRoot 等于路径到此路径 oldRoot ,从而有效地将此位置移动到新位置.

[Microsoft.SqlServer.Server.SqlMethod(DataAccess=Microsoft.SqlServer.Server.DataAccessKind.None, InvokeIfReceiverIsNull=false, IsDeterministic=true, IsMutator=false, IsPrecise=true, OnNullCall=false, SystemDataAccess=Microsoft.SqlServer.Server.SystemDataAccessKind.None)]
public Microsoft.SqlServer.Types.SqlHierarchyId GetReparentedValue(Microsoft.SqlServer.Types.SqlHierarchyId oldRoot, Microsoft.SqlServer.Types.SqlHierarchyId newRoot);
[<Microsoft.SqlServer.Server.SqlMethod(DataAccess=Microsoft.SqlServer.Server.DataAccessKind.None, InvokeIfReceiverIsNull=false, IsDeterministic=true, IsMutator=false, IsPrecise=true, OnNullCall=false, SystemDataAccess=Microsoft.SqlServer.Server.SystemDataAccessKind.None)>]
member this.GetReparentedValue : Microsoft.SqlServer.Types.SqlHierarchyId * Microsoft.SqlServer.Types.SqlHierarchyId -> Microsoft.SqlServer.Types.SqlHierarchyId
Public Function GetReparentedValue (oldRoot As SqlHierarchyId, newRoot As SqlHierarchyId) As SqlHierarchyId

参数

oldRoot
SqlHierarchyId

要移动的路径段的终结点的节点的上级 SqlHierarchyId 。

newRoot
SqlHierarchyId

表示 SqlHierarchyId 此新上级的节点。

返回

一个 SqlHierarchyId 表示此新分层位置的节点。 如果 oldRoot为 null, newRoot则返回 null;否则返回 null。

属性

适用于