MvcJsonMvcBuilderExtensions.AddJsonOptions(IMvcBuilder, Action<MvcJsonOptions>) Method

Definition

Adds configuration of MvcJsonOptions for the application.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IMvcBuilder ^ AddJsonOptions(Microsoft::Extensions::DependencyInjection::IMvcBuilder ^ builder, Action<Microsoft::AspNetCore::Mvc::MvcJsonOptions ^> ^ setupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddJsonOptions (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.MvcJsonOptions> setupAction);
static member AddJsonOptions : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.MvcJsonOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddJsonOptions (builder As IMvcBuilder, setupAction As Action(Of MvcJsonOptions)) As IMvcBuilder

Parameters

builder
IMvcBuilder

The IMvcBuilder.

setupAction
Action<MvcJsonOptions>

The MvcJsonOptions which need to be configured.

Returns

IMvcBuilder

Applies to