MvcJsonMvcCoreBuilderExtensions.AddJsonFormatters 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
AddJsonFormatters(IMvcCoreBuilder) | |
AddJsonFormatters(IMvcCoreBuilder, Action<JsonSerializerSettings>) |
AddJsonFormatters(IMvcCoreBuilder)
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddJsonFormatters (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddJsonFormatters : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddJsonFormatters (builder As IMvcCoreBuilder) As IMvcCoreBuilder
Paramètres
- builder
- IMvcCoreBuilder
Retours
S’applique à
AddJsonFormatters(IMvcCoreBuilder, Action<JsonSerializerSettings>)
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddJsonFormatters (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Newtonsoft.Json.JsonSerializerSettings> setupAction);
static member AddJsonFormatters : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Newtonsoft.Json.JsonSerializerSettings> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddJsonFormatters (builder As IMvcCoreBuilder, setupAction As Action(Of JsonSerializerSettings)) As IMvcCoreBuilder
Paramètres
- builder
- IMvcCoreBuilder
- setupAction
- Action<Newtonsoft.Json.JsonSerializerSettings>