Sdílet prostřednictvím


PageConventionCollectionExtensions.Add Metoda

Definice

Přidá zadaný convention parametr do conventions. Přidaná konvence se bude vztahovat na všechny vlastnosti a parametry obslužné rutiny u metod obslužné rutiny.

public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection Add (this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelBaseConvention convention);
static member Add : Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection * Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelBaseConvention -> Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection
<Extension()>
Public Function Add (conventions As PageConventionCollection, convention As IParameterModelBaseConvention) As PageConventionCollection

Parametry

Návraty

Hodnota PageConventionCollection

Platí pro