MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings 方法

定义

重载

AddFormatterMappings(IMvcCoreBuilder)

添加服务以支持 FormatterMappings

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings为指定的 setupAction进行配置。

AddFormatterMappings(IMvcCoreBuilder)

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

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

参数

返回

IMvcBuilder

适用于

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

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

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

返回

IMvcBuilder

适用于