PageConventionCollection.AddPageRouteModelConvention(String, Action<PageRouteModel>) PageConventionCollection.AddPageRouteModelConvention(String, Action<PageRouteModel>) PageConventionCollection.AddPageRouteModelConvention(String, Action<PageRouteModel>) Method

Definition

Creates and adds an IPageRouteModelConvention that invokes an action on the PageRouteModel for the page with the specified name.

public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddPageRouteModelConvention (string pageName, Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel> action);
member this.AddPageRouteModelConvention : string * Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel> -> Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention
Public Function AddPageRouteModelConvention (pageName As String, action As Action(Of PageRouteModel)) As IPageRouteModelConvention

Parameters

pageName
String String String

The name of the page e.g. /Users/List

Returns

Applies to