IRouteTemplateProvider Interface

Summary

Interface for attributes which can supply a route template for attribute routing.

Syntax

public interface IRouteTemplateProvider

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.Routing.IRouteTemplateProvider

Properties

Name()

Gets the route name. The route name can be used to generate a link using a specific route, instead of relying on selection of a route based on the given set of route values.

Return type:System.String
string Name { get; }
Order()

Gets the route order. The order determines the order of route execution. Routes with a lower order value are tried first. When a route doesn’t specify a value, it gets a default value of 0. A null value for the Order property means that the user didn’t specify an explicit order for the route.

Return type:System.Nullable{System.Int32}
int ? Order { get; }
Template()

The route template. May be null.

Return type:System.String
string Template { get; }