AreaRegistrationContext::MapRoute Method (String, String, array<String>)

Visual Studio 2010

Maps the specified URL route and associates it with the area that is specified by the AreaName property, using the specified namespaces.

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

public:
Route^ MapRoute(
	String^ name, 
	String^ url, 
	array<String^>^ namespaces
)

Parameters

name
Type: System::String
The name of the route.
url
Type: System::String
The URL pattern for the route.
namespaces
Type: array<System::String>
An enumerable set of namespaces for the application.

Return Value

Type: System.Web.Routing::Route
A reference to the mapped route.

ExceptionCondition
ArgumentNullException

The url parameter is nullptr.

Community Additions

ADD
Show: