Interface IMapRoute
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public interface IMapRoute
Methods
| Improve this Doc View SourceMapHttpRoute(String, String, String, Object, Object, String[])
Sets up the route(s) for DotNetNuke services.
Declaration
IList<Route> MapHttpRoute(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 |
---|---|
IList<Route> | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
MapHttpRoute(String, String, String, Object, String[])
Sets up the route(s) for DotNetNuke services.
Declaration
IList<Route> MapHttpRoute(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 |
---|---|
IList<Route> | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.
MapHttpRoute(String, String, String, String[])
Sets up the route(s) for DotNetNuke services.
Declaration
IList<Route> MapHttpRoute(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 |
---|---|
IList<Route> | A list of all routes that were registered. |
Remarks
The combination of moduleFolderName and routeName must be unique for each route.