Class MvcRoutingManager
Inheritance
Implements
Namespace: DotNetNuke.Web.Mvc.Routing
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public sealed class MvcRoutingManager : object, IMapRoute
Constructors
| Improve this Doc View SourceMvcRoutingManager()
Declaration
public MvcRoutingManager()
Methods
| Improve this Doc View SourceMapRoute(String, String, String, Object, Object, String[])
Sets up the route(s) for DotNetNuke MVC Controls.
Declaration
public Route MapRoute(string moduleFolderName, string routeName, string url, object defaults, object constraints, string[] namespaces)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | moduleFolderName | The name of the folder under DesktopModules in which your module resides. |
| System.String | routeName | A unique name for the route. |
| System.String | url | The parameterized portion of the route. |
| System.Object | defaults | Default values for the route parameters. |
| System.Object | constraints | The constraints. |
| System.String[] | namespaces | The namespace(s) in which to search for the controllers for this route. |
Returns
| Type | Description |
|---|---|
| Route | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
MapRoute(String, String, String, Object, String[])
Sets up the route(s) for DotNetNuke MVC Controls.
Declaration
public Route MapRoute(string moduleFolderName, string routeName, string url, object defaults, string[] namespaces)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | moduleFolderName | The name of the folder under DesktopModules in which your module resides. |
| System.String | routeName | A unique name for the route. |
| System.String | url | The parameterized portion of the route. |
| System.Object | defaults | Default values for the route parameters. |
| System.String[] | namespaces | The namespace(s) in which to search for the controllers for this route. |
Returns
| Type | Description |
|---|---|
| Route | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
MapRoute(String, String, String, String[])
Sets up the route(s) for DotNetNuke MVC Controls.
Declaration
public Route MapRoute(string moduleFolderName, string routeName, string url, string[] namespaces)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | moduleFolderName | The name of the folder under DesktopModules in which your module resides. |
| System.String | routeName | A unique name for the route. |
| System.String | url | The parameterized portion of the route. |
| System.String[] | namespaces | The namespace(s) in which to search for the controllers for this route. |
Returns
| Type | Description |
|---|---|
| Route | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
RegisterRoutes()
Declaration
public void RegisterRoutes()