Dela via


PageApplicationModel Class

Definition

Application model component for RazorPages.

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

Constructors

PageApplicationModel(PageActionDescriptor, TypeInfo, IReadOnlyList<Object>)

Initializes a new instance of PageApplicationModel.

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

Initializes a new instance of PageApplicationModel.

PageApplicationModel(PageApplicationModel)

A copy constructor for PageApplicationModel.

Properties

ActionDescriptor

Gets the PageActionDescriptor.

AreaName

Gets the area name.

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.

EndpointMetadata

Gets the endpoint metadata for this action.

Filters

Gets the applicable IFilterMetadata instances.

HandlerMethods

Gets the sequence of PageHandlerModel instances.

HandlerProperties

Gets the sequence of PagePropertyModel instances on PageHandlerModel.

HandlerType

Gets the TypeInfo of the handler.

HandlerTypeAttributes

Gets the sequence of attributes declared on HandlerType.

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

Gets or sets the TypeInfo of the Razor page.

Properties

Stores arbitrary metadata properties associated with the PageApplicationModel.

RelativePath

Gets the application root relative path for the page.

RouteTemplate

Gets the route template for the page.

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