RouteGroupContext.Prefix Property
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.
Gets the RoutePattern which should prefix the RoutePattern of all RouteEndpoint instances returned by the call to GetGroupedEndpoints(RouteGroupContext). This accounts for nested groups and gives the full group prefix not just the prefix supplied to the innermost call to MapGroup(IEndpointRouteBuilder, RoutePattern).
public Microsoft.AspNetCore.Routing.Patterns.RoutePattern Prefix { get; init; }
member this.Prefix : Microsoft.AspNetCore.Routing.Patterns.RoutePattern with get, set
Public Property Prefix As RoutePattern
Property Value
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for