MvcCoreMvcBuilderExtensions.AddJsonOptions(IMvcBuilder, Action<JsonOptions>) Метод

Определение

Настраивает JsonOptions для указанного builder .

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddJsonOptions (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.JsonOptions> configure);
static member AddJsonOptions : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.JsonOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddJsonOptions (builder As IMvcBuilder, configure As Action(Of JsonOptions)) As IMvcBuilder

Параметры

configure
Action<JsonOptions>

Действие Action для настройки JsonOptions.

Возвращаемое значение

IMvcBuilder

IMvcBuilder.

Применяется к