다음을 통해 공유


SqlHierarchyId.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

매개 변수

반환 값

유형: Microsoft.SqlServer.Types.SqlHierarchyId
A SqlHierarchyId node representing the new hierarchical location of this. Will return nullnull 참조(Visual Basic에서는 Nothing) if oldRoot, newRoot, or thisare nullnull 참조(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.

참고 항목

참조

SqlHierarchyId 구조

Microsoft.SqlServer.Types 네임스페이스