Compartir a través de


RouteData.PushState Método

Definición

Crea una instantánea del estado actual de antes de anexar router a Routers, combinar values en Valuesy combinar dataTokens en DataTokens.RouteData

Llame Restore() a para restaurar el estado de este RouteData en el estado en el momento de llamar a 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

que IRouter se va a anexar a Routers. Si nulles , Routers no se cambiará.

values
RouteValueDictionary

que RouteValueDictionary se va a combinar en Values. Si nulles , Values no se cambiará.

dataTokens
RouteValueDictionary

que RouteValueDictionary se va a combinar en DataTokens. Si nulles , DataTokens no se cambiará.

Devoluciones

que RouteData.RouteDataSnapshot captura el estado actual.

Se aplica a