RouteCollectionExtensions.GetVirtualPathForArea Method

 

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

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetVirtualPathForArea(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.

System_CAPS_pubmethodSystem_CAPS_staticGetVirtualPathForArea(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.

Return to top

RouteCollectionExtensions.GetVirtualPathForArea Method (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 VirtualPathData GetVirtualPathForArea(
	this RouteCollection routes,
	RequestContext requestContext,
	RouteValueDictionary values
)

Parameters

routes
Type: System.Web.Routing.RouteCollection

An object that contains the routes for the applications.

requestContext
Type: System.Web.Routing.RequestContext

An object that encapsulates information about the requested route.

values
Type: System.Web.Routing.RouteValueDictionary

An object that contains the parameters for a route.

Return Value

Type: System.Web.Routing.VirtualPathData

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

The information that is returned includes data tokens, the route, and the virtual path.

Return to top

RouteCollectionExtensions.GetVirtualPathForArea Method (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 VirtualPathData GetVirtualPathForArea(
	this RouteCollection routes,
	RequestContext requestContext,
	string name,
	RouteValueDictionary values
)

Parameters

routes
Type: System.Web.Routing.RouteCollection

An object that contains the routes for the applications.

requestContext
Type: System.Web.Routing.RequestContext

An object that encapsulates information about the requested route.

name
Type: System.String

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

values
Type: System.Web.Routing.RouteValueDictionary

An object that contains the parameters for a route.

Return Value

Type: System.Web.Routing.VirtualPathData

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

The information that is returned includes data tokens, the route, and the virtual path.

Return to top
Show: