Bagikan melalui


MvcCoreMvcBuilderExtensions.AddJsonOptions Metode

Definisi

JsonOptions Mengonfigurasi untuk yang ditentukanbuilder. Menggunakan nilai default dari JsonSerializerDefaults.Web.

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

Parameter

configure
Action<JsonOptions>

Action untuk mengonfigurasi JsonOptions.

Mengembalikan

IMvcBuilder.

Berlaku untuk