MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddFormatterMappings(IMvcCoreBuilder) |
Agrega servicios para admitir FormatterMappings. |
AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>) |
FormatterMappings Configura para el especificado |
AddFormatterMappings(IMvcCoreBuilder)
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
- builder
- IMvcCoreBuilder
Devoluciones
Se aplica a
AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)
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
- builder
- IMvcCoreBuilder
- setupAction
- Action<FormatterMappings>
Action para configurar la instancia de FormatterMappings.