Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
RazorComponentsEndpointHttpContextExtensions.AcceptsInteractiveRouting Method
Definition
- Namespace:
- Microsoft.AspNetCore.Components.Routing
- Assembly:
- Microsoft.AspNetCore.Components.Endpoints.dll
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
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.
Applies to
Feedback
Was this page helpful?
