Sdílet prostřednictvím


MvcXmlMvcCoreBuilderExtensions.AddXmlSerializerFormatters Metoda

Definice

Přetížení

AddXmlSerializerFormatters(IMvcCoreBuilder)

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

AddXmlSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

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

AddXmlSerializerFormatters(IMvcCoreBuilder)

Zdroj:
MvcXmlMvcCoreBuilderExtensions.cs
Zdroj:
MvcXmlMvcCoreBuilderExtensions.cs
Zdroj:
MvcXmlMvcCoreBuilderExtensions.cs

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

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

Parametry

Návraty

Hodnota IMvcCoreBuilder

Platí pro

AddXmlSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

Zdroj:
MvcXmlMvcCoreBuilderExtensions.cs
Zdroj:
MvcXmlMvcCoreBuilderExtensions.cs

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

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

Parametry

setupAction
Action<MvcXmlOptions>

Které MvcXmlOptions je potřeba nakonfigurovat.

Návraty

Hodnota IMvcCoreBuilder

Platí pro