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

サービス コレクション。

戻り値

IRazorComponentsBuilder Razor コンポーネント サービスをさらに構成するために使用できる 。

適用対象