RoutePrecedence.ComputeInbound(RouteTemplate) Method

Definition

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

Applies to