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 的 。

适用于