Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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