RazorComponentsEndpointHttpContextExtensions.AcceptsInteractiveRouting 方法

定义

确定当前终结点是否为可通过交互式路由访问的 Razor 组件。 这适用于所有页面组件,除非声明属性 ExcludeFromInteractiveRoutingAttribute

public static bool AcceptsInteractiveRouting (this Microsoft.AspNetCore.Http.HttpContext context);
static member AcceptsInteractiveRouting : Microsoft.AspNetCore.Http.HttpContext -> bool
<Extension()>
Public Function AcceptsInteractiveRouting (context As HttpContext) As Boolean

参数

返回

如此 如果当前终结点是未声明 ExcludeFromInteractiveRoutingAttribute的 Razor 组件。

适用于