NewtonsoftJsonMvcBuilderExtensions.AddNewtonsoftJson 方法       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| AddNewtonsoftJson(IMvcBuilder) | 
						 配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。  | 
        	
| AddNewtonsoftJson(IMvcBuilder, Action<MvcNewtonsoftJsonOptions>) | 
						 配置 Newtonsoft.Json 特定功能,例如输入和输出格式化程序。  | 
        	
AddNewtonsoftJson(IMvcBuilder)
配置 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
	参数
- builder
 - IMvcBuilder
 
返回
适用于
AddNewtonsoftJson(IMvcBuilder, Action<MvcNewtonsoftJsonOptions>)
配置 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
	参数
- builder
 - IMvcBuilder
 
- setupAction
 - Action<MvcNewtonsoftJsonOptions>
 
用于配置 MvcNewtonsoftJsonOptions的回调。