Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
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)
Syntax
'Declaration
Public Function MapRoute ( _
name As String, _
url As String, _
namespaces As String() _
) As Route
public Route MapRoute(
string name,
string url,
string[] namespaces
)
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: System.String[]
An enumerable set of namespaces for the application.
Return Value
Type: System.Web.Routing.Route
A reference to the mapped route.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The url parameter is null reference (Nothing in Visual Basic). |