MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Método

Definición

Sobrecargas

AddFormatterMappings(IMvcCoreBuilder)

Agrega servicios para admitir FormatterMappings.

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings Configura para el especificadosetupAction.

AddFormatterMappings(IMvcCoreBuilder)

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

Agrega servicios para admitir 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

Parámetros

Devoluciones

IMvcBuilder.

Se aplica a

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

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

FormatterMappings Configura para el especificadosetupAction.

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

Parámetros

setupAction
Action<FormatterMappings>

Action para configurar la instancia de FormatterMappings.

Devoluciones

IMvcBuilder.

Se aplica a