Skip to main content
All docs
V24.2

StartupPdfViewerExtensions.AddDevExpressWebAssemblyBlazorPdfViewer(IServiceCollection) Method

Adds DevExpress PDF Viewer-related services to the Blazor WebAssembly application’s service collection.

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Blazor.PdfViewer.v24.2.dll

NuGet Package: DevExpress.Blazor.PdfViewer

Declaration

public static void AddDevExpressWebAssemblyBlazorPdfViewer(
    this IServiceCollection services
)

Parameters

Name Type Description
services IServiceCollection

The application’s service collection.

Remarks

Call the AddDevExpressWebAssemblyBlazorPdfViewer method at Blazor WebAssembly application startup to register PDF Viewer-related services in your application.

var builder = WebApplication.CreateBuilder(args);
// ...
builder.Services.AddDevExpressWebAssemblyBlazorPdfViewer();
// ...
var app = builder.Build();
See Also