VirtualPathContext Class

A context for virtual path generation operations.

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

Syntax

public class VirtualPathContext
class Microsoft.AspNetCore.Routing.VirtualPathContext

Constructors

VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary, Microsoft.AspNetCore.Routing.RouteValueDictionary)

Creates a new Microsoft.AspNetCore.Routing.VirtualPathContext.

Arguments:
public VirtualPathContext(HttpContext httpContext, RouteValueDictionary ambientValues, RouteValueDictionary values)
VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary, Microsoft.AspNetCore.Routing.RouteValueDictionary, System.String)

Creates a new Microsoft.AspNetCore.Routing.VirtualPathContext.

Arguments:
public VirtualPathContext(HttpContext httpContext, RouteValueDictionary ambientValues, RouteValueDictionary values, string routeName)

Properties

Microsoft.AspNetCore.Routing.VirtualPathContext.AmbientValues

Gets the set of route values associated with the current request.

Return type:Microsoft.AspNetCore.Routing.RouteValueDictionary
public RouteValueDictionary AmbientValues { get; }
Microsoft.AspNetCore.Routing.VirtualPathContext.HttpContext

Gets the Microsoft.AspNetCore.Http.HttpContext associated with the current request.

Return type:Microsoft.AspNetCore.Http.HttpContext
public HttpContext HttpContext { get; }
Microsoft.AspNetCore.Routing.VirtualPathContext.RouteName

Gets the name of the route to use for virtual path generation.

Return type:System.String
public string RouteName { get; }
Microsoft.AspNetCore.Routing.VirtualPathContext.Values

Gets or sets the set of new values provided for virtual path generation.

Return type:Microsoft.AspNetCore.Routing.RouteValueDictionary
public RouteValueDictionary Values { get; set; }