Condividi tramite


PageConventionCollectionExtensions.Add Metodo

Definizione

Aggiunge l'oggetto specificato convention a conventions. La convenzione aggiunta verrà applicata a tutte le proprietà e i parametri del gestore nei metodi del gestore.

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

Parametri

conventions
PageConventionCollection

Oggetto PageConventionCollection da configurare.

Restituisce

Oggetto PageConventionCollection.

Si applica a