VirtualPathContext Class¶
A context for virtual path generation operations.
- Namespace
Microsoft.AspNetCore.Routing
- Assemblies
- Microsoft.AspNetCore.Routing.Abstractions
Constructors¶
-
VirtualPathContext
(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary, Microsoft.AspNetCore.Routing.RouteValueDictionary)¶ Creates a new
Microsoft.AspNetCore.Routing.VirtualPathContext
.Arguments: - httpContext (Microsoft.AspNetCore.Http.HttpContext) – The
Microsoft.AspNetCore.Http.HttpContext
associated with the current request. - ambientValues (Microsoft.AspNetCore.Routing.RouteValueDictionary) – The set of route values associated with the current request.
- values (Microsoft.AspNetCore.Routing.RouteValueDictionary) – The set of new values provided for virtual path generation.
public VirtualPathContext(HttpContext httpContext, RouteValueDictionary ambientValues, RouteValueDictionary values)
- httpContext (Microsoft.AspNetCore.Http.HttpContext) – The
-
VirtualPathContext
(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary, Microsoft.AspNetCore.Routing.RouteValueDictionary, System.String) Creates a new
Microsoft.AspNetCore.Routing.VirtualPathContext
.Arguments: - httpContext (Microsoft.AspNetCore.Http.HttpContext) – The
Microsoft.AspNetCore.Http.HttpContext
associated with the current request. - ambientValues (Microsoft.AspNetCore.Routing.RouteValueDictionary) – The set of route values associated with the current request.
- values (Microsoft.AspNetCore.Routing.RouteValueDictionary) – The set of new values provided for virtual path generation.
- routeName (System.String) – The name of the route to use for virtual path generation.
public VirtualPathContext(HttpContext httpContext, RouteValueDictionary ambientValues, RouteValueDictionary values, string routeName)
- httpContext (Microsoft.AspNetCore.Http.HttpContext) – The
-
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; }
-