MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings 方法

定义

重载

AddFormatterMappings(IMvcCoreBuilder)

添加服务以支持 FormatterMappings

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings 指定的 配置 setupAction

AddFormatterMappings(IMvcCoreBuilder)

添加服务以支持 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

参数

返回

IMvcCoreBuilder

IMvcBuilder

适用于

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings 指定的 配置 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

参数

setupAction
Action<FormatterMappings>

用于配置 FormatterMappingsAction

返回

IMvcCoreBuilder

IMvcBuilder

适用于