Condividi tramite


MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Metodo

Definizione

Overload

AddFormatterMappings(IMvcCoreBuilder)

Aggiunge servizi per supportare FormatterMappings.

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings Configura per l'oggetto specificatosetupAction.

AddFormatterMappings(IMvcCoreBuilder)

Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs

Aggiunge servizi per supportare 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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcBuilder.

Restituisce

Oggetto IMvcBuilder.

Si applica a

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs
Origine:
MvcCoreMvcCoreBuilderExtensions.cs

FormatterMappings Configura per l'oggetto specificatosetupAction.

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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

setupAction
Action<FormatterMappings>

Oggetto Action per la configurazione di FormatterMappings.

Restituisce

Oggetto IMvcBuilder.

Si applica a