Back to Devexpress

StartupExtensions.AddDevExpressBlazorReporting(IServiceCollection) Method

xtrareports-devexpress-dot-blazor-dot-reporting-dot-startupextensions-dot-adddevexpressblazorreporting-x28-microsoft-dot-extensions-dot-dependencyinjection-dot-iservicecollection-x29.md

latest2.4 KB
Original Source

StartupExtensions.AddDevExpressBlazorReporting(IServiceCollection) Method

Adds the DevExpress Blazor Reporting services to the IServiceCollection collection.

Namespace : DevExpress.Blazor.Reporting

Assembly : DevExpress.Blazor.Reporting.v25.2.JSBasedControls.dll

NuGet Package : DevExpress.Blazor.Reporting.JSBasedControls

Declaration

csharp
public static IServiceCollection AddDevExpressBlazorReporting(
    this IServiceCollection services
)
vb
<ExtensionAttribute>
Public Shared Function AddDevExpressBlazorReporting(
    services As IServiceCollection
) As IServiceCollection

Parameters

NameTypeDescription
servicesIServiceCollection

A list of service descriptor objects that define services in an application.

|

Returns

TypeDescription
IServiceCollection

An updated list of service descriptor objects for subsequent use.

|

Remarks

The AddDevExpressBlazorReporting method is used to configure DevExpress Blazor Reporting services in a Blazor application. Call the AddDevExpressBlazorReporting method at the application startup:

csharp
using DevExpress.AspNetCore;
using DevExpress.Blazor.Reporting;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddDevExpressBlazorReporting();

var app = builder.Build();

See Also

StartupExtensions Class

StartupExtensions Members

DevExpress.Blazor.Reporting Namespace