RoutePrecedence.ComputeInbound(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 matching a provided url
public:
static System::Decimal ComputeInbound(Microsoft::AspNetCore::Routing::Template::RouteTemplate ^ template);
public static decimal ComputeInbound (Microsoft.AspNetCore.Routing.Template.RouteTemplate template);
static member ComputeInbound : Microsoft.AspNetCore.Routing.Template.RouteTemplate -> decimal
Public Shared Function ComputeInbound (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 == 1.1 /api/template/{id} == 1.13 /api/{id:int} == 1.2 /api/template/{id:int} == 1.12