Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NewtonsoftJsonMvcBuilderExtensions.AddNewtonsoftJson Method

Definition

Namespace:
Microsoft.Extensions.DependencyInjection
Assembly:
Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v10.0.0
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v3.0.3
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v3.1.18
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v5.0.9
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v6.0.6
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v7.0.5
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v8.0.19
Package:
Microsoft.AspNetCore.Mvc.NewtonsoftJson v9.0.8

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

Name Description
AddNewtonsoftJson(IMvcBuilder)

Configures Newtonsoft.Json specific features such as input and output formatters.

AddNewtonsoftJson(IMvcBuilder, Action<MvcNewtonsoftJsonOptions>)

Configures Newtonsoft.Json specific features such as input and output formatters.

AddNewtonsoftJson(IMvcBuilder)

Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs

Configures Newtonsoft.Json specific features such as input and output formatters.

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

Parameters

builder
IMvcBuilder

The IMvcBuilder.

Returns

The IMvcBuilder.

Applies to

AddNewtonsoftJson(IMvcBuilder, Action<MvcNewtonsoftJsonOptions>)

Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs
Source:
NewtonsoftJsonMvcBuilderExtensions.cs

Configures Newtonsoft.Json specific features such as input and output formatters.

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

Parameters

builder
IMvcBuilder

The IMvcBuilder.

setupAction
Action<MvcNewtonsoftJsonOptions>

Callback to configure MvcNewtonsoftJsonOptions.

Returns

The IMvcBuilder.

Applies to


Feedback

Was this page helpful?