Partilhar via


PageConventionCollection.AddFolderApplicationModelConvention Método

Definição

Cria e adiciona um IPageApplicationModelConvention que invoca uma ação em PageApplicationModel instâncias para todas as páginas na pasta 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

O caminho da pasta em relação à raiz do Razor Pages. Por exemplo: /Users/

Retornos

O adicionado IPageApplicationModelConvention.

Aplica-se a