共用方式為


ServerRazorComponentsEndpointConventionBuilderExtensions.AddInteractiveServerRenderMode 方法

定義

多載

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

設定應用程式以支援 InteractiveServer 轉譯模式。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

將 Blazor Hub 對應至預設路徑。

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder)

來源:
ServerRazorComponentsEndpointConventionBuilderExtensions.cs

設定應用程式以支援 InteractiveServer 轉譯模式。

public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder AddInteractiveServerRenderMode (this Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder builder);
static member AddInteractiveServerRenderMode : Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder -> Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder
<Extension()>
Public Function AddInteractiveServerRenderMode (builder As RazorComponentsEndpointConventionBuilder) As RazorComponentsEndpointConventionBuilder

參數

傳回

RazorComponentsEndpointConventionBuilder

適用於

AddInteractiveServerRenderMode(RazorComponentsEndpointConventionBuilder, Action<ServerComponentsEndpointOptions>)

將 Blazor Hub 對應至預設路徑。

public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder AddInteractiveServerRenderMode (this Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder builder, Action<Microsoft.AspNetCore.Components.Server.ServerComponentsEndpointOptions> configure);
static member AddInteractiveServerRenderMode : Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder * Action<Microsoft.AspNetCore.Components.Server.ServerComponentsEndpointOptions> -> Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder
<Extension()>
Public Function AddInteractiveServerRenderMode (builder As RazorComponentsEndpointConventionBuilder, configure As Action(Of ServerComponentsEndpointOptions)) As RazorComponentsEndpointConventionBuilder

參數

configure
Action<ServerComponentsEndpointOptions>

設定伺服器端點選項的回呼。

傳回

ComponentEndpointConventionBuilder

適用於