Partilhar via


PageConventionCollection.AddPageRouteModelConvention Método

Definição

Cria e adiciona um IPageRouteModelConvention que invoca uma ação no PageRouteModel para a página com o nome especificado.

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

Parâmetros

pageName
String

O nome da página, por exemplo, /Users/List

Retornos

O adicionado IPageRouteModelConvention.

Aplica-se a