NewtonsoftJsonMvcBuilderExtensions.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(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)
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>)
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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: