PageApplicationModel PageApplicationModel PageApplicationModel Class

Definition

Application model component for RazorPages.

public class PageApplicationModel
type PageApplicationModel = class
Public Class PageApplicationModel
Inheritance
PageApplicationModelPageApplicationModelPageApplicationModel

Constructors

PageApplicationModel(PageApplicationModel) PageApplicationModel(PageApplicationModel) PageApplicationModel(PageApplicationModel)

A copy constructor for PageApplicationModel.

PageApplicationModel(PageActionDescriptor, TypeInfo, IReadOnlyList<Object>) PageApplicationModel(PageActionDescriptor, TypeInfo, IReadOnlyList<Object>) PageApplicationModel(PageActionDescriptor, TypeInfo, IReadOnlyList<Object>)

Initializes a new instance of PageApplicationModel.

PageApplicationModel(PageActionDescriptor, TypeInfo, TypeInfo, IReadOnlyList<Object>) PageApplicationModel(PageActionDescriptor, TypeInfo, TypeInfo, IReadOnlyList<Object>) PageApplicationModel(PageActionDescriptor, TypeInfo, TypeInfo, IReadOnlyList<Object>)

Initializes a new instance of PageApplicationModel.

Properties

ActionDescriptor ActionDescriptor ActionDescriptor

Gets the PageActionDescriptor.

AreaName AreaName AreaName

Gets the area name.

DeclaredModelType DeclaredModelType DeclaredModelType

Gets the declared model TypeInfo of the model for the page. Typically this TypeInfo will be the type specified by the @model directive in the razor page.

Filters Filters Filters

Gets the applicable IFilterMetadata instances.

HandlerMethods HandlerMethods HandlerMethods

Gets the sequence of PageHandlerModel instances.

HandlerProperties HandlerProperties HandlerProperties

Gets the sequence of PagePropertyModel instances on PageHandlerModel.

HandlerType HandlerType HandlerType

Gets the TypeInfo of the handler.

HandlerTypeAttributes HandlerTypeAttributes HandlerTypeAttributes

Gets the sequence of attributes declared on HandlerType.

ModelType ModelType ModelType

Gets or sets the runtime model TypeInfo of the model for the razor page. This is the TypeInfo that will be used at runtime to instantiate and populate the model property of the page.

PageType PageType PageType

Gets or sets the TypeInfo of the Razor page.

Properties Properties Properties

Stores arbitrary metadata properties associated with the PageApplicationModel.

RelativePath RelativePath RelativePath

Gets the application root relative path for the page.

RouteTemplate RouteTemplate RouteTemplate

Gets the route template for the page.

ViewEnginePath ViewEnginePath 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