RouteDataSnapshot Struct

A snapshot of the state of a Microsoft.AspNetCore.Routing.RouteData instance.

Namespace
Microsoft.AspNetCore.Routing.RouteData
Assemblies
  • Microsoft.AspNetCore.Routing.Abstractions

Syntax

public struct RouteDataSnapshot
struct Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot

Constructors

RouteDataSnapshot(Microsoft.AspNetCore.Routing.RouteData, Microsoft.AspNetCore.Routing.RouteValueDictionary, System.Collections.Generic.IList<Microsoft.AspNetCore.Routing.IRouter>, Microsoft.AspNetCore.Routing.RouteValueDictionary)

Creates a new Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot for <em>routeData</em>.

Arguments:
public RouteDataSnapshot(RouteData routeData, RouteValueDictionary dataTokens, IList<IRouter> routers, RouteValueDictionary values)

Methods

Restore()

Restores the Microsoft.AspNetCore.Routing.RouteData to the captured state.

public void Restore()