RouteCollectionExtension.MapDashboardRoute(RouteCollection, String, String) Method
In This Article
Maps the specified URL route and sets a prefix, controller name and namespaces.
Namespace: DevExpress.DashboardWeb.Mvc
Assembly: DevExpress.Dashboard.v24.2.Web.Mvc5.dll
NuGet Package: DevExpress.Web.Mvc5.Dashboard
#Declaration
public static void MapDashboardRoute(
this RouteCollection routes,
string routePrefix,
string controllerName
)
#Parameters
Name | Type | Description |
---|---|---|
routes | Route |
A collection of the Route |
route |
String | A String value that specifies a route prefix. |
controller |
String | A String value that specifies the controller name. |
#Remarks
A route prefix is used to handle requests from the client-side DashboardControl. Use the following properties in the client applications to specify the endpoint:
- Client app with DashboardControl: DashboardControlOptions.endpoint
- ASP.NET Core Razor app: DashboardBackendOptionsBuilder.Uri
- ASP.NET MVC Razor app: DashboardBackendOptions.Uri
See Also