Condividi tramite


MvcCoreMvcBuilderExtensions.AddJsonOptions Metodo

Definizione

JsonOptions Configura per l'oggetto specificatobuilder. Usa i valori predefiniti da 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

Parametri

builder
IMvcBuilder

Oggetto IMvcBuilder.

configure
Action<JsonOptions>

Oggetto Action per la configurazione di JsonOptions.

Restituisce

Oggetto IMvcBuilder.

Si applica a