MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddFormatterMappings(IMvcCoreBuilder) |
Adds services to support FormatterMappings. |
AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>) |
Configures FormatterMappings for the specified |
AddFormatterMappings(IMvcCoreBuilder)
Adds services to support 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
Parameters
- builder
- IMvcCoreBuilder
The IMvcBuilder.
Returns
The IMvcBuilder.
Applies to
AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)
Configures FormatterMappings for the specified 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
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
- setupAction
- Action<FormatterMappings>
An Action to configure the FormatterMappings.
Returns
The IMvcBuilder.