MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddFormatterMappings(IMvcCoreBuilder) |
Ajoute des services pour prendre en charge FormatterMappings. |
AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>) |
FormatterMappings Configure pour le spécifié |
AddFormatterMappings(IMvcCoreBuilder)
Ajoute des services pour prendre en charge FormatterMappings.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddFormatterMappings : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddFormatterMappings (builder As IMvcCoreBuilder) As IMvcCoreBuilder
Paramètres
- builder
- IMvcCoreBuilder
L’IMvcBuilderopérateur
Retours
L’IMvcBuilderopérateur
S’applique à
AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)
FormatterMappings Configure pour le spécifiésetupAction
.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.Formatters.FormatterMappings> setupAction);
static member AddFormatterMappings : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.Formatters.FormatterMappings> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddFormatterMappings (builder As IMvcCoreBuilder, setupAction As Action(Of FormatterMappings)) As IMvcCoreBuilder
Paramètres
- builder
- IMvcCoreBuilder
L’IMvcCoreBuilderopérateur
- setupAction
- Action<FormatterMappings>
Action permettant de configurer le FormatterMappings.
Retours
L’IMvcBuilderopérateur