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

Definition

Creates and adds an IPageRouteModelConvention that invokes an action on PageRouteModel instances for all page under the specified folder.

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

Parameters

folderPath
String String String

The path of the folder relative to the Razor Pages root. e.g. /Users/

Returns

Applies to