Bagikan melalui


PageConventionCollection.AddPageApplicationModelConvention Metode

Definisi

Membuat dan menambahkan yang IPageApplicationModelConvention memanggil tindakan pada PageApplicationModel halaman dengan nama yang ditentukan.

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

Parameter

pageName
String

Nama halaman misalnya /Users/List

Mengembalikan

Yang ditambahkan IPageApplicationModelConvention.

Berlaku untuk