RoutePrecedence.ComputeOutbound(RouteTemplate) 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.
Compute the precedence for generating a url.
public:
static System::Decimal ComputeOutbound(Microsoft::AspNetCore::Routing::Template::RouteTemplate ^ template);
public static decimal ComputeOutbound (Microsoft.AspNetCore.Routing.Template.RouteTemplate template);
static member ComputeOutbound : Microsoft.AspNetCore.Routing.Template.RouteTemplate -> decimal
Public Shared Function ComputeOutbound (template As RouteTemplate) As Decimal
Parameters
- template
- RouteTemplate
The RouteTemplate to compute precedence for.
Returns
A Decimal representing the route's precedence.
Examples
e.g.: /api/template == 5.5 /api/template/{id} == 5.53 /api/{id:int} == 5.4 /api/template/{id:int} == 5.54
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