Partager via


MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Méthode

Définition

Surcharges

AddFormatterMappings(IMvcCoreBuilder)

Ajoute des services pour prendre en charge FormatterMappings.

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings Configure pour le spécifiésetupAction.

AddFormatterMappings(IMvcCoreBuilder)

Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs

Ajoute des services pour prendre en charge FormatterMappings.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddFormatterMappings : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddFormatterMappings (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcBuilderopérateur

Retours

L’IMvcBuilderopérateur

S’applique à

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs
Source:
MvcCoreMvcCoreBuilderExtensions.cs

FormatterMappings Configure pour le spécifiésetupAction.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.Formatters.FormatterMappings> setupAction);
static member AddFormatterMappings : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.Formatters.FormatterMappings> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddFormatterMappings (builder As IMvcCoreBuilder, setupAction As Action(Of FormatterMappings)) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

setupAction
Action<FormatterMappings>

Action permettant de configurer le FormatterMappings.

Retours

L’IMvcBuilderopérateur

S’applique à