RazorComponentsEndpointRouteBuilderExtensions.MapRazorComponents<TRootComponent> 方法

定義

將指定的 TRootComponent 中所定義的頁面元件對應至指定的元件,並在路由相符時轉譯 所 TRootComponent 指定的元件。

public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder MapRazorComponents<TRootComponent> (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints);
static member MapRazorComponents : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder -> Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder
<Extension()>
Public Function MapRazorComponents(Of TRootComponent) (endpoints As IEndpointRouteBuilder) As RazorComponentsEndpointConventionBuilder

類型參數

TRootComponent

參數

傳回

RazorComponentsEndpointConventionBuilder,可用來進一步設定 API。

適用於