Langue

SqlHierarchyId.GetReparentedValue(SqlHierarchyId, SqlHierarchyId) Méthode

Définition

Obtient une valeur représentant l’emplacement d’un nouveau SqlHierarchyId nœud qui a un chemin d’accès égal newRoot au chemin d’accès à partir de oldRoot celui-ci, en le déplaçant efficacement vers le nouvel emplacement.

[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

Paramètres

oldRoot
SqlHierarchyId

Ancêtre du SqlHierarchyId nœud spécifiant le point de terminaison du segment de chemin d’accès à déplacer.

newRoot
SqlHierarchyId

Nœud SqlHierarchyId qui représente le nouvel ancêtre de ce problème.

Retours

Nœud SqlHierarchyId représentant le nouvel emplacement hiérarchique de ce problème. Retourne null si oldRoot, newRootou thisare null.

Attributs

S’applique à