MvcXmlMvcBuilderExtensions.AddXmlSerializerFormatters Metoda

Definice

Přetížení

AddXmlSerializerFormatters(IMvcBuilder)

Přidá formátovací modul serializátoru XML do MVC.

AddXmlSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

Přidá formátovací modul serializátoru XML do MVC.

AddXmlSerializerFormatters(IMvcBuilder)

Přidá formátovací modul serializátoru XML do MVC.

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlSerializerFormatters (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);
static member AddXmlSerializerFormatters : Microsoft.Extensions.DependencyInjection.IMvcBuilder -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddXmlSerializerFormatters (builder As IMvcBuilder) As IMvcBuilder

Parametry

builder
IMvcBuilder

Hodnota IMvcBuilder

Návraty

IMvcBuilder

Hodnota IMvcBuilder

Platí pro

AddXmlSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

Přidá formátovací modul serializátoru XML do MVC.

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlSerializerFormatters (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.Formatters.Xml.MvcXmlOptions> setupAction);
static member AddXmlSerializerFormatters : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.Formatters.Xml.MvcXmlOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddXmlSerializerFormatters (builder As IMvcBuilder, setupAction As Action(Of MvcXmlOptions)) As IMvcBuilder

Parametry

builder
IMvcBuilder

Hodnota IMvcBuilder

setupAction
Action<MvcXmlOptions>

MvcXmlOptionsKterý je třeba nakonfigurovat.

Návraty

IMvcBuilder

Hodnota IMvcBuilder

Platí pro