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 的回呼。