GetReparentedValue 方法
Gets a value representing the ___location of a new SqlHierarchyId node that has a path from newRoot equal to the path from oldRoot to this, effectively moving this to the new ___location.
命名空间: 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 GetReparentedValue ( _
oldRoot As SqlHierarchyId, _
newRoot As SqlHierarchyId _
) As SqlHierarchyId
用法
Dim instance As SqlHierarchyId
Dim oldRoot As SqlHierarchyId
Dim newRoot As SqlHierarchyId
Dim returnValue As SqlHierarchyId
returnValue = instance.GetReparentedValue(oldRoot, _
newRoot)
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public SqlHierarchyId GetReparentedValue(
SqlHierarchyId oldRoot,
SqlHierarchyId newRoot
)
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public:
SqlHierarchyId GetReparentedValue(
SqlHierarchyId oldRoot,
SqlHierarchyId newRoot
)
[<SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)>]
member GetReparentedValue :
oldRoot:SqlHierarchyId *
newRoot:SqlHierarchyId -> SqlHierarchyId
public function GetReparentedValue(
oldRoot : SqlHierarchyId,
newRoot : SqlHierarchyId
) : SqlHierarchyId
参数
- oldRoot
类型:Microsoft.SqlServer.Types. . :: . .SqlHierarchyId
An ancestor of the SqlHierarchyId node specifying the endpoint of the path segment that is to be moved.
- newRoot
类型:Microsoft.SqlServer.Types. . :: . .SqlHierarchyId
The SqlHierarchyId node that represents the new ancestor of this.
返回值
类型:Microsoft.SqlServer.Types. . :: . .SqlHierarchyId
A SqlHierarchyId node representing the new hierarchical ___location of this. Will return nullNothingnullptrunitnull 引用(在 Visual Basic 中为 Nothing) if oldRoot, newRoot, or thisare nullNothingnullptrunitnull 引用(在 Visual Basic 中为 Nothing).
注释
Returns a node whose path from the root is the path to newRoot, followed by the path from oldRoot to this.
The SqlHierarchyId data type represents but does not enforce the hierarchical structure. Users must ensure that the SqlHierarchyId node is appropriately structured for the new ___location.