New to Telerik UI for BlazorStart a free 30-day trial

Class that contains the Telerik service extensions.

Definition

Namespace:Microsoft.Extensions.DependencyInjection

Assembly:Telerik.Blazor.dll

Syntax:

C#
public static class ServiceCollectionExtensions

Inheritance: objectServiceCollectionExtensions

Methods

Registers the Telerik Blazor services. You must call it in the ConfigureServices method of the Startup class of your project.

C#
public static IServiceCollection AddTelerikBlazor(this IServiceCollection services)
Parameters:servicesIServiceCollection

The IServiceCollection argument the ConfigureServices method receives.

Returns:

IServiceCollection

The updated IServiceCollection collection argument the ConfigureServices method receives.