Compartir a través de


PageConventionCollection.AddFolderRouteModelConvention Método

Definición

Crea y agrega un IPageRouteModelConvention objeto que invoca una acción en PageRouteModel instancias para todas las páginas de la carpeta especificada.

public:
 Microsoft::AspNetCore::Mvc::ApplicationModels::IPageRouteModelConvention ^ AddFolderRouteModelConvention(System::String ^ folderPath, Action<Microsoft::AspNetCore::Mvc::ApplicationModels::PageRouteModel ^> ^ action);
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

Parámetros

folderPath
String

Ruta de acceso de la carpeta relativa a la raíz de Razor Pages. p. ej. /Users/

Devoluciones

se ha agregado IPageApplicationModelConvention.

Se aplica a