Partilhar via


MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Método

Definição

Sobrecargas

AddFormatterMappings(IMvcCoreBuilder)

Adiciona serviços para dar suporte FormatterMappingsa .

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings Configura para o especificadosetupAction.

AddFormatterMappings(IMvcCoreBuilder)

Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs

Adiciona serviços para dar suporte FormatterMappingsa .

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

Parâmetros

Retornos

O IMvcBuilder.

Aplica-se a

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs
Origem:
MvcCoreMvcCoreBuilderExtensions.cs

FormatterMappings Configura para o especificadosetupAction.

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

Parâmetros

setupAction
Action<FormatterMappings>

Um Action para configurar o FormatterMappings.

Retornos

O IMvcBuilder.

Aplica-se a