Back to Devexpress

RouteBuilderExtension.MapDashboardRoute(IEndpointRouteBuilder, String, String) Method

dashboard-devexpress-dot-dashboardaspnetcore-dot-routebuilderextension-dot-mapdashboardroute-x28-microsoft-dot-aspnetcore-dot-routing-dot-iendpointroutebuilder-system-dot-string-system-dot-string-x29.md

latest2.8 KB
Original Source

RouteBuilderExtension.MapDashboardRoute(IEndpointRouteBuilder, String, String) Method

Maps the specified URL route and sets a prefix and a controller name.

Namespace : DevExpress.DashboardAspNetCore

Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public static void MapDashboardRoute(
    this IEndpointRouteBuilder endpointRouteBuilder,
    string routePrefix,
    string controllerName
)
vb
<ExtensionAttribute>
Public Shared Sub MapDashboardRoute(
    endpointRouteBuilder As IEndpointRouteBuilder,
    routePrefix As String,
    controllerName As String
)

Parameters

NameTypeDescription
endpointRouteBuilderIEndpointRouteBuilder

The IEndpointRouteBuilder to add the route to.

| | routePrefix | String |

A String value that specifies a route prefix.

| | controllerName | 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:

See Also

RouteBuilderExtension Class

RouteBuilderExtension Members

DevExpress.DashboardAspNetCore Namespace