NewtonsoftJsonMvcCoreBuilderExtensions.AddNewtonsoftJson 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddNewtonsoftJson(IMvcCoreBuilder) |
配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。 |
AddNewtonsoftJson(IMvcCoreBuilder, Action<MvcNewtonsoftJsonOptions>) |
配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。 |
AddNewtonsoftJson(IMvcCoreBuilder)
配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddNewtonsoftJson (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddNewtonsoftJson : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddNewtonsoftJson (builder As IMvcCoreBuilder) As IMvcCoreBuilder
参数
- builder
- IMvcCoreBuilder
返回
适用于
AddNewtonsoftJson(IMvcCoreBuilder, Action<MvcNewtonsoftJsonOptions>)
配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddNewtonsoftJson (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions> setupAction);
static member AddNewtonsoftJson : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddNewtonsoftJson (builder As IMvcCoreBuilder, setupAction As Action(Of MvcNewtonsoftJsonOptions)) As IMvcCoreBuilder
参数
- builder
- IMvcCoreBuilder
- setupAction
- Action<MvcNewtonsoftJsonOptions>
用于配置 MvcNewtonsoftJsonOptions的回调。