PageConventionCollection.AddAreaPageApplicationModelConvention Method
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.
Creates and adds an IPageApplicationModelConvention that invokes an action on the PageApplicationModel for the page with the specified name located in the specified area.
public:
Microsoft::AspNetCore::Mvc::ApplicationModels::IPageApplicationModelConvention ^ AddAreaPageApplicationModelConvention(System::String ^ areaName, System::String ^ pageName, Action<Microsoft::AspNetCore::Mvc::ApplicationModels::PageApplicationModel ^> ^ action);
public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddAreaPageApplicationModelConvention (string areaName, string pageName, Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel> action);
member this.AddAreaPageApplicationModelConvention : string * string * Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel> -> Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention
Public Function AddAreaPageApplicationModelConvention (areaName As String, pageName As String, action As Action(Of PageApplicationModel)) As IPageApplicationModelConvention
Parameters
- areaName
- String
The name of area.
- pageName
- String
The page name e.g. /Users/List
The page name is the path of the file without extension, relative to the pages root directory for the specified area.
e.g. the page name for the file Areas/Identity/Pages/Manage/Accounts.cshtml, is /Manage/Accounts
.
- action
- Action<PageApplicationModel>
The Action.
Returns
The added IPageApplicationModelConvention.