PageConventionCollectionExtensions.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified convention
to conventions
.
The added convention will apply to all handler properties and parameters on handler methods.
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
Parameters
- conventions
- PageConventionCollection
The PageConventionCollection to configure.
- convention
- IParameterModelBaseConvention
The IParameterModelBaseConvention to apply.