Back to Devexpress

ReportingConfigurationBuilderBase<T>.UseDevelopmentMode(Action<DevelopmentModeOptions>) Method

xtrareports-devexpress-dot-xtrareports-dot-web-dot-extensions-dot-services-dot-reportingconfigurationbuilderbase-1-dot-usedevelopmentmode-x28-action-developmentmodeoptions-x29.md

latest2.9 KB
Original Source

ReportingConfigurationBuilderBase<T>.UseDevelopmentMode(Action<DevelopmentModeOptions>) Method

Allows you to configure Development mode.

Namespace : DevExpress.XtraReports.Web.Extensions.Services

Assembly : DevExpress.Web.Reporting.v25.2.Common.Services.dll

NuGet Package : DevExpress.Web.Reporting.Common.Services

Declaration

csharp
public T UseDevelopmentMode(
    Action<DevelopmentModeOptions> configure
)
vb
Public Function UseDevelopmentMode(
    configure As Action(Of DevelopmentModeOptions)
) As T

Parameters

NameTypeDescription
configureAction<DevelopmentModeOptions>

An Action<T> delegate method that allows you to specify Development mode options.

|

Returns

TypeDescription
T

An object that can be used to further configure reporting services.

|

Remarks

The ReportingConfigurationBuilder.UseDevelopmentMode() method enables Development mode on both server and client sides. The method sets the Enabled property to true and enables all application diagnostic options in development mode.

The following code snippet enables development mode only for the server-side application and disables regular checks to find version mismatches:

csharp
var builder = WebApplication.CreateBuilder(args);

builder.Services.ConfigureReportingServices(configurator => {
    configurator.UseDevelopmentMode(options => {
        options.EnableClientSideDevelopmentMode = false;
        options.CheckClientLibraryVersions = false;
    });
});

var app = builder.Build();

See Also

ReportingConfigurationBuilderBase<T> Class

ReportingConfigurationBuilderBase<T> Members

DevExpress.XtraReports.Web.Extensions.Services Namespace