MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Methode

Definition

Überlädt

AddFormatterMappings(IMvcCoreBuilder)

Fügt Dienste zur Unterstützung FormatterMappingshinzu.

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings Konfiguriert für den angegebenen setupAction.

AddFormatterMappings(IMvcCoreBuilder)

Fügt Dienste zur Unterstützung FormatterMappingshinzu.

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

Parameter

Gibt zurück

Die IMvcBuilder.

Gilt für:

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings Konfiguriert für den angegebenen 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

Parameter

setupAction
Action<FormatterMappings>

Eine Action zum Konfigurieren von FormatterMappings.

Gibt zurück

Die IMvcBuilder.

Gilt für: