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>

Действие Action для настройки FormatterMappings.

Возвращаемое значение

IMvcCoreBuilder

IMvcBuilder.

Применяется к