PageConventionCollectionExtensions.Add(PageConventionCollection, IParameterModelBaseConvention) Method

Definition

Adds the specified convention to conventions. The added convention will apply to all handler properties and parameters on handler methods.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ Add(Microsoft::AspNetCore::Mvc::ApplicationModels::PageConventionCollection ^ conventions, Microsoft::AspNetCore::Mvc::ApplicationModels::IParameterModelBaseConvention ^ convention);
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

Applies to