Share via


RazorComponentsEndpointHttpContextExtensions.AcceptsInteractiveRouting Method

Definition

Determines whether the current endpoint is a Razor component that can be reached through interactive routing. This is true for all page components except if they declare the attribute 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

Parameters

context
HttpContext

The HttpContext.

Returns

True if the current endpoint is a Razor component that does not declare ExcludeFromInteractiveRoutingAttribute.

Applies to