Compartilhar via


RouteData.PushState Método

Definição

Cria uma instantâneo do estado atual do antes de RouteData acrescentar a Routers, mesclar routervalues em Valuese mesclar dataTokens em DataTokens.

Chame Restore() para restaurar o estado disso RouteData para o estado no momento da chamada PushState(IRouter, RouteValueDictionary, RouteValueDictionary).

public:
 Microsoft::AspNetCore::Routing::RouteData::RouteDataSnapshot PushState(Microsoft::AspNetCore::Routing::IRouter ^ router, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ dataTokens);
public Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot PushState (Microsoft.AspNetCore.Routing.IRouter router, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens);
public Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot PushState (Microsoft.AspNetCore.Routing.IRouter? router, Microsoft.AspNetCore.Routing.RouteValueDictionary? values, Microsoft.AspNetCore.Routing.RouteValueDictionary? dataTokens);
member this.PushState : Microsoft.AspNetCore.Routing.IRouter * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot
Public Function PushState (router As IRouter, values As RouteValueDictionary, dataTokens As RouteValueDictionary) As RouteData.RouteDataSnapshot

Parâmetros

router
IRouter

Um IRouter a ser acrescentado a Routers. Se null, não Routers será alterado.

values
RouteValueDictionary

Um RouteValueDictionary para mesclar em Values. Se null, não Values será alterado.

dataTokens
RouteValueDictionary

Um RouteValueDictionary para mesclar em DataTokens. Se null, não DataTokens será alterado.

Retornos

Um RouteData.RouteDataSnapshot que captura o estado atual.

Aplica-se a