Condividi tramite


RouteData.PushState Metodo

Definizione

Crea uno snapshot dello stato corrente dell'oggetto RouteData prima di aggiungere router a Routers, unione values in Valuese unione dataTokens in DataTokens.

Chiamare Restore() per ripristinare lo stato di questo RouteData allo stato al momento della chiamata 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

Parametri

router
IRouter

Oggetto IRouter da aggiungere a Routers. Se null, Routers non verrà modificato.

values
RouteValueDictionary

Oggetto RouteValueDictionary da unire in Values. Se null, Values non verrà modificato.

dataTokens
RouteValueDictionary

Oggetto RouteValueDictionary da unire in DataTokens. Se null, DataTokens non verrà modificato.

Restituisce

Oggetto RouteData.RouteDataSnapshot che acquisisce lo stato corrente.

Si applica a