Partager via


PageConventionCollection.AddFolderApplicationModelConvention Méthode

Définition

Crée et ajoute un IPageApplicationModelConvention qui appelle une action sur PageApplicationModel les instances pour toutes les pages du dossier spécifié.

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

Paramètres

folderPath
String

Chemin d’accès du dossier relatif à la racine des pages Razor. Exemple : /Users/

action
Action<PageApplicationModel>

L’Actionopérateur

Retours

ajout IPageApplicationModelConventionde .

S’applique à