Share via


PageConventionCollectionExtensions.Add Method

Definition

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.

Returns

The PageConventionCollection.

Applies to