MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings 方法

定義

多載

AddFormatterMappings(IMvcCoreBuilder)

新增服務以支援 FormatterMappings

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

為指定的 setupAction 設定 FormatterMappings

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

參數

傳回

IMvcBuilder

適用於

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

為指定的 setupAction 設定 FormatterMappings

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

適用於