RoutePrecedence.ComputeOutbound(RouteTemplate) Method

Definition

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