Sdílet prostřednictvím


MvcCoreMvcCoreBuilderExtensions.AddJsonOptions Metoda

Definice

Konfiguruje JsonOptions pro zadanou builderhodnotu .

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

Parametry

builder
IMvcCoreBuilder

Hodnota IMvcBuilder

configure
Action<JsonOptions>

An Action pro konfiguraci objektu JsonOptions.

Návraty

Hodnota IMvcBuilder

Platí pro