Partager via


PageConventionCollection.AddPageApplicationModelConvention Méthode

Définition

Crée et ajoute un IPageApplicationModelConvention qui appelle une action sur pour PageApplicationModel la page avec le nom spécifié.

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

Paramètres

pageName
String

Nom de la page, par exemple. /Users/List

action
Action<PageApplicationModel>

L’Actionopérateur

Retours

Ajout IPageApplicationModelConventionde .

S’applique à