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.

C#
public static bool AcceptsInteractiveRouting (this Microsoft.AspNetCore.Http.HttpContext context);

Parameters

context
HttpContext

The HttpContext.

Returns

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

Applies to

Product Versions
ASP.NET Core 9.0