Condividi tramite


PageConventionCollection.AddPageApplicationModelConvention Metodo

Definizione

Crea e aggiunge un oggetto IPageApplicationModelConvention che richiama un'azione PageApplicationModel nella pagina con il nome specificato.

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

Parametri

pageName
String

Nome della pagina, ad esempio. /Users/List

Restituisce

IPageApplicationModelConventionAggiunta di .

Si applica a