PageConventionCollection.AddFolderRouteModelConvention Método

Definição

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

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

Retornos

O adicionado IPageApplicationModelConvention.

Aplica-se a