MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Metoda

Definice

Přetížení

AddFormatterMappings(IMvcCoreBuilder)

Přidá služby pro podporu FormatterMappings .

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

Nakonfiguruje FormatterMappings pro zadanou setupAction .

AddFormatterMappings(IMvcCoreBuilder)

Přidá služby pro podporu 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

Parametry

builder
IMvcCoreBuilder

Hodnota IMvcBuilder

Návraty

IMvcCoreBuilder

Hodnota IMvcBuilder

Platí pro

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

Nakonfiguruje FormatterMappings pro zadanou 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

Parametry

setupAction
Action<FormatterMappings>

ActionKe konfiguraci FormatterMappings .

Návraty

IMvcCoreBuilder

Hodnota IMvcBuilder

Platí pro