ApplicationBuilderExtensions.UseDevExpressControls(IApplicationBuilder) Method

Registers the DevExpress middleware.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Common.v21.1.dll

Declaration

public static IApplicationBuilder UseDevExpressControls(
    this IApplicationBuilder appBuilder
)

Parameters

Name Type Description
appBuilder IApplicationBuilder

An object that provides the mechanisms to configure an application’s request pipeline.

Returns

Type Description
IApplicationBuilder

An object that provides the mechanisms to configure an application’s request pipeline.

Remarks

Call the UseDevExpressControls method to register the DevExpress middleware. The code snippet below shows how to add the required code to the Startup.cs file.

using DevExpress.AspNetCore;

...
public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
    // ...
    app.UseStaticFiles();
    app.UseDevExpressControls();
    // ...
}
See Also