Sdílet prostřednictvím


PageConventionCollection.AddFolderApplicationModelConvention Metoda

Definice

Vytvoří a přidá IPageApplicationModelConvention akci, která vyvolá akci na PageApplicationModel instancích pro všechny stránky v zadané složce.

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

Parametry

folderPath
String

Cesta ke složce vzhledem ke kořenovému adresáři Razor Pages. Například /Users/

Návraty

Přidaná hodnota IPageApplicationModelConvention.

Platí pro