NewtonsoftJsonMvcCoreBuilderExtensions.AddNewtonsoftJson Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddNewtonsoftJson(IMvcCoreBuilder) |
Configures Newtonsoft.Json specific features such as input and output formatters. |
AddNewtonsoftJson(IMvcCoreBuilder, Action<MvcNewtonsoftJsonOptions>) |
Configures Newtonsoft.Json specific features such as input and output formatters. |
AddNewtonsoftJson(IMvcCoreBuilder)
Configures Newtonsoft.Json specific features such as input and output formatters.
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
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
Returns
The IMvcCoreBuilder.
Applies to
AddNewtonsoftJson(IMvcCoreBuilder, Action<MvcNewtonsoftJsonOptions>)
Configures Newtonsoft.Json specific features such as input and output formatters.
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
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
- setupAction
- Action<MvcNewtonsoftJsonOptions>
Callback to configure MvcNewtonsoftJsonOptions.
Returns
The IMvcCoreBuilder.