NewtonsoftJsonMvcBuilderExtensions.AddNewtonsoftJson 方法

定义

重载

AddNewtonsoftJson(IMvcBuilder)

配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。

AddNewtonsoftJson(IMvcBuilder, Action<MvcNewtonsoftJsonOptions>)

配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。

AddNewtonsoftJson(IMvcBuilder)

Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs

配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddNewtonsoftJson (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);
static member AddNewtonsoftJson : Microsoft.Extensions.DependencyInjection.IMvcBuilder -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddNewtonsoftJson (builder As IMvcBuilder) As IMvcBuilder

参数

返回

IMvcBuilder

适用于

AddNewtonsoftJson(IMvcBuilder, Action<MvcNewtonsoftJsonOptions>)

Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs

配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddNewtonsoftJson (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions> setupAction);
static member AddNewtonsoftJson : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddNewtonsoftJson (builder As IMvcBuilder, setupAction As Action(Of MvcNewtonsoftJsonOptions)) As IMvcBuilder

参数

setupAction
Action<MvcNewtonsoftJsonOptions>

用于配置 MvcNewtonsoftJsonOptions的回调。

返回

IMvcBuilder

适用于