PageRouteModel Class
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.
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 |
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 |
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
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 |