AreaRegistrationContext.MapRoute Method (String, String, 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.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Function MapRoute ( _ name As String, _ url As String, _ namespaces As String() _ ) As Route
Parameters
- name
- Type: System.String
The name of the route.
- url
- Type: System.String
The URL pattern for the route.
- namespaces
- Type: System.String()
An enumerable set of namespaces for the application.
| Exception | Condition |
|---|---|
| ArgumentNullException | The url parameter is Nothing. |
Community Additions
ADD
Show: