SqlHierarchyId.GetReparentedValue(SqlHierarchyId, SqlHierarchyId) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém um valor que representa o local de um novo SqlHierarchyId nó que tem um caminho de newRoot igual para o caminho, oldRoot movendo-o efetivamente para o novo local.
[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
Parâmetros
- oldRoot
- SqlHierarchyId
Um ancestral do SqlHierarchyId nó que especifica o ponto de extremidade do segmento de caminho que deve ser movido.
- newRoot
- SqlHierarchyId
O SqlHierarchyId nó que representa o novo ancestral disso.
Retornos
Um SqlHierarchyId nó que representa o novo local hierárquico disso. Retornará nulo se oldRoot, newRootou isso for nulo.
- Atributos