Share via


PageRouteModel Class

Definition

A model component for routing RazorPages.

public ref class PageRouteModel
public class PageRouteModel
type PageRouteModel = class
Public Class PageRouteModel
Inheritance
PageRouteModel

Constructors

PageRouteModel(PageRouteModel)

A copy constructor for PageRouteModel.

PageRouteModel(String, String, String)

Initializes a new instance of PageRouteModel.

PageRouteModel(String, String)

Initializes a new instance of PageRouteModel.

Properties

AreaName

Gets the area name. Will be null for non-area pages.

Properties

Stores arbitrary metadata properties associated with the PageRouteModel.

RelativePath

Gets the application root relative path for the page.

RouteParameterTransformer

Gets or sets an IOutboundParameterTransformer that will be used to transform built-in route parameters such as action, controller, and area as well as additional parameters specified by RouteValues into static segments in the route template.

RouteValues

Gets a collection of route values that must be present in the Values for the corresponding page to be selected.

Selectors

Gets the SelectorModel instances.

ViewEnginePath

Gets the path relative to the base path for page discovery.

This value is the path of the file without extension, relative to the pages root directory. e.g. the ViewEnginePath for the file /Pages/Catalog/Antiques.cshtml is /Catalog/Antiques

In an area, this value is the path of the file without extension, relative to the pages root directory for the specified area. e.g. the ViewEnginePath for the file Areas/Identity/Pages/Manage/Accounts.cshtml, is /Manage/Accounts.

Applies to