NewtonsoftJsonMvcCoreBuilderExtensions.AddNewtonsoftJson 方法

定義

多載

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

參數

傳回

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

參數

setupAction
Action<MvcNewtonsoftJsonOptions>

要設定 MvcNewtonsoftJsonOptions 的回呼。

傳回

IMvcCoreBuilder

適用於