共用方式為


MvcJsonMvcCoreBuilderExtensions.AddJsonFormatters 方法

定義

多載

AddJsonFormatters(IMvcCoreBuilder)
AddJsonFormatters(IMvcCoreBuilder, Action<JsonSerializerSettings>)

AddJsonFormatters(IMvcCoreBuilder)

來源:
MvcJsonMvcCoreBuilderExtensions.cs
來源:
MvcJsonMvcCoreBuilderExtensions.cs
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

參數

builder
IMvcCoreBuilder

傳回

適用於

AddJsonFormatters(IMvcCoreBuilder, Action<JsonSerializerSettings>)

來源:
MvcJsonMvcCoreBuilderExtensions.cs
來源:
MvcJsonMvcCoreBuilderExtensions.cs
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

參數

builder
IMvcCoreBuilder
setupAction
Action<Newtonsoft.Json.JsonSerializerSettings>

傳回

適用於