MvcCoreMvcBuilderExtensions.AddJsonOptions Methode

Definition

JsonOptions Konfiguriert für den angegebenen builder. Verwendet Standardwerte von 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

builder
IMvcBuilder

Die IMvcBuilder.

configure
Action<JsonOptions>

Eine Action zum Konfigurieren von JsonOptions.

Gibt zurück

Die IMvcBuilder.

Gilt für: