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.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for