NewtonsoftJsonMvcBuilderExtensions.AddNewtonsoftJson 方法

定義

多載

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

參數

傳回

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

參數

setupAction
Action<MvcNewtonsoftJsonOptions>

要設定 MvcNewtonsoftJsonOptions 的回呼。

傳回

IMvcBuilder

適用於