次の方法で共有


SqlHierarchyId.GetReparentedValue メソッド

newRoot からのパスが oldRoot から this へのパスと等しい、新しい SqlHierarchyId ノードの位置を表す値を取得します。このノードは実質的に、this を新しい位置に移動します。

名前空間:  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
階層内での this の新しい位置を表す SqlHierarchyId ノードです。oldRoot、newRoot、または this が nullNULL 参照 (Visual Basic では Nothing) の場合は、nullNULL 参照 (Visual Basic では Nothing) を返します。

説明

ルートからのパスが newRoot へのパスであるノードと、oldRoot から this へのパスを返します。

SqlHierarchyId データ型は階層構造を表しますが、階層構造を適用するものではありません。 ユーザーは、SqlHierarchyId ノードが新しい位置に対して正しく構成されていることを確認する必要があります。

関連項目

参照

SqlHierarchyId 構造体

Microsoft.SqlServer.Types 名前空間