RazorComponentsServiceCollectionExtensions.AddRazorComponents 메서드

정의

Razor 구성 요소의 서버 쪽 렌더링에 필요한 서비스를 등록합니다.

public static Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder AddRazorComponents (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Components.Endpoints.RazorComponentsServiceOptions>? configure = default);
static member AddRazorComponents : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Components.Endpoints.RazorComponentsServiceOptions> -> Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder
<Extension()>
Public Function AddRazorComponents (services As IServiceCollection, Optional configure As Action(Of RazorComponentsServiceOptions) = Nothing) As IRazorComponentsBuilder

매개 변수

services
IServiceCollection

서비스 컬렉션입니다.

configure
Action<RazorComponentsServiceOptions>

제공된 RazorComponentsServiceOptions를 구성하는 Action<T>입니다.

반환

IRazorComponentsBuilder Razor 구성 요소 서비스를 추가로 구성하는 데 사용할 수 있는 입니다.

적용 대상