Bagikan melalui


MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings Metode

Definisi

Overload

AddFormatterMappings(IMvcCoreBuilder)

Menambahkan layanan untuk mendukung FormatterMappings.

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

FormatterMappings Mengonfigurasi untuk yang ditentukansetupAction.

AddFormatterMappings(IMvcCoreBuilder)

Sumber:
MvcCoreMvcCoreBuilderExtensions.cs
Sumber:
MvcCoreMvcCoreBuilderExtensions.cs
Sumber:
MvcCoreMvcCoreBuilderExtensions.cs

Menambahkan layanan untuk mendukung 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

Parameter

Mengembalikan

IMvcBuilder.

Berlaku untuk

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

Sumber:
MvcCoreMvcCoreBuilderExtensions.cs
Sumber:
MvcCoreMvcCoreBuilderExtensions.cs
Sumber:
MvcCoreMvcCoreBuilderExtensions.cs

FormatterMappings Mengonfigurasi untuk yang ditentukansetupAction.

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

Parameter

setupAction
Action<FormatterMappings>

Action untuk mengonfigurasi FormatterMappings.

Mengembalikan

IMvcBuilder.

Berlaku untuk