Compartir a través de


PageConventionCollection.AddFolderApplicationModelConvention Método

Definición

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

public:
 Microsoft::AspNetCore::Mvc::ApplicationModels::IPageApplicationModelConvention ^ AddFolderApplicationModelConvention(System::String ^ folderPath, Action<Microsoft::AspNetCore::Mvc::ApplicationModels::PageApplicationModel ^> ^ action);
public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddFolderApplicationModelConvention (string folderPath, Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel> action);
member this.AddFolderApplicationModelConvention : string * Action<Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel> -> Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention
Public Function AddFolderApplicationModelConvention (folderPath As String, action As Action(Of PageApplicationModel)) As IPageApplicationModelConvention

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