Route.GetVirtualPath(RequestContext, RouteValueDictionary) Method

Definition

Returns information about the URL that is associated with the route.

public override System.Web.Routing.VirtualPathData GetVirtualPath(System.Web.Routing.RequestContext requestContext, System.Web.Routing.RouteValueDictionary values);

Parameters

requestContext
RequestContext

An object that encapsulates information about the requested route.

values
RouteValueDictionary

An object that contains the parameters for a route.

Returns

An object that contains information about the URL that is associated with the route.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also