Partager via


MvcCoreMvcCoreBuilderExtensions.AddJsonOptions Méthode

Définition

JsonOptions Configure pour le spécifiébuilder.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcBuilderopérateur

configure
Action<JsonOptions>

Action permettant de configurer le JsonOptions.

Retours

L’IMvcBuilderopérateur

S’applique à