RazorComponentsEndpointHttpContextExtensions.AcceptsInteractiveRouting Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.