SqlHierarchyId.GetReparentedValue, méthode (SqlHierarchyId, SqlHierarchyId)
Obtient une valeur représentant l'emplacement d'un nouveau nœud SqlHierarchyId qui a un chemin d'accès de newRoot égal au chemin d'accès de oldRoot à this, en déplaçant efficacement this vers le nouvel emplacement*.*
Espace de noms: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (dans Microsoft.SqlServer.Types.dll)
Syntaxe
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true,
IsPrecise = true, IsMutator = false)]
public SqlHierarchyId GetReparentedValue(
SqlHierarchyId oldRoot,
SqlHierarchyId newRoot
)
public:
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true,
IsPrecise = true, IsMutator = false)]
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
<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
Paramètres
oldRoot
Type: Microsoft.SqlServer.Types.SqlHierarchyIdAncêtre du nœud SqlHierarchyId spécifiant le point de terminaison du segment de chemin d'accès qui doit être déplacé.
newRoot
Type: Microsoft.SqlServer.Types.SqlHierarchyIdNœud SqlHierarchyId qui représente le nouvel ancêtre de this.
Valeur de retour
Type: Microsoft.SqlServer.Types.SqlHierarchyId
Nœud SqlHierarchyId représentant le nouvel emplacement hiérarchique de this. Retourne null si oldRoot, newRoot, this ou sont null.
Notes
Retourne un nœud dont le chemin d'accès depuis la racine est le chemin d'accès à newRoot, suivi du chemin entre oldRoot et this.
Le type de données SqlHierarchyId représente, mais n'applique pas la structure hiérarchique. Les utilisateurs doivent s’assurer que le SqlHierarchyId nœud est correctement structuré pour le nouvel emplacement.
Voir aussi
SqlHierarchyId, structure
Microsoft.SqlServer.Types, espace de noms
Retour au début