RouteCollectionExtensions.GetVirtualPathForArea Method

Definition

Overloads

GetVirtualPathForArea(RouteCollection, RequestContext, RouteValueDictionary)

Returns an object that contains information about the route and virtual path that are the result of generating a URL in the current area.

GetVirtualPathForArea(RouteCollection, RequestContext, String, RouteValueDictionary)

Returns an object that contains information about the route and virtual path that are the result of generating a URL in the current area.

GetVirtualPathForArea(RouteCollection, RequestContext, RouteValueDictionary)

Returns an object that contains information about the route and virtual path that are the result of generating a URL in the current area.

public static System.Web.Routing.VirtualPathData GetVirtualPathForArea (this System.Web.Routing.RouteCollection routes, System.Web.Routing.RequestContext requestContext, System.Web.Routing.RouteValueDictionary values);
static member GetVirtualPathForArea : System.Web.Routing.RouteCollection * System.Web.Routing.RequestContext * System.Web.Routing.RouteValueDictionary -> System.Web.Routing.VirtualPathData
<Extension()>
Public Function GetVirtualPathForArea (routes As RouteCollection, requestContext As RequestContext, values As RouteValueDictionary) As VirtualPathData

Parameters

routes
RouteCollection

An object that contains the routes for the applications.

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 route and virtual path that are the result of generating a URL in the current area.

Applies to

GetVirtualPathForArea(RouteCollection, RequestContext, String, RouteValueDictionary)

Returns an object that contains information about the route and virtual path that are the result of generating a URL in the current area.

public static System.Web.Routing.VirtualPathData GetVirtualPathForArea (this System.Web.Routing.RouteCollection routes, System.Web.Routing.RequestContext requestContext, string name, System.Web.Routing.RouteValueDictionary values);
static member GetVirtualPathForArea : System.Web.Routing.RouteCollection * System.Web.Routing.RequestContext * string * System.Web.Routing.RouteValueDictionary -> System.Web.Routing.VirtualPathData
<Extension()>
Public Function GetVirtualPathForArea (routes As RouteCollection, requestContext As RequestContext, name As String, values As RouteValueDictionary) As VirtualPathData

Parameters

routes
RouteCollection

An object that contains the routes for the applications.

requestContext
RequestContext

An object that encapsulates information about the requested route.

name
String

The name of the route to use when information about the URL path is retrieved.

values
RouteValueDictionary

An object that contains the parameters for a route.

Returns

An object that contains information about the route and virtual path that are the result of generating a URL in the current area.

Applies to