Skip to main content
All docs
V24.2

StartupPdfViewerExtensions.AddDevExpressServerSideBlazorPdfViewer(IServiceCollection) Method

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

Namespace: Microsoft.Extensions.DependencyInjection

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

NuGet Package: DevExpress.Blazor.PdfViewer

Declaration

public static void AddDevExpressServerSideBlazorPdfViewer(
    this IServiceCollection services
)

Parameters

Name Type Description
services IServiceCollection

The application’s service collection.

Remarks

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

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