共用方式為


ServerRazorComponentsBuilderExtensions.AddInteractiveServerComponents 方法

定義

新增服務以支援在 razor 元件應用程式中轉譯互動式伺服器元件。

public static Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder AddInteractiveServerComponents (this Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder builder, Action<Microsoft.AspNetCore.Components.Server.CircuitOptions>? configure = default);
static member AddInteractiveServerComponents : Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder * Action<Microsoft.AspNetCore.Components.Server.CircuitOptions> -> Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder
<Extension()>
Public Function AddInteractiveServerComponents (builder As IRazorComponentsBuilder, Optional configure As Action(Of CircuitOptions) = Nothing) As IServerSideBlazorBuilder

參數

configure
Action<CircuitOptions>

要設定 CircuitOptions 的回呼。

傳回

IRazorComponentsBuilder,可用來進一步自訂群組態。

適用於