Sdílet prostřednictvím


MvcXmlMvcCoreBuilderExtensions.AddXmlDataContractSerializerFormatters Metoda

Definice

Přetížení

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder)

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

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

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

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder)

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

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

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

Parametry

Návraty

Hodnota IMvcCoreBuilder

Platí pro

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

Zdroj:
MvcXmlMvcCoreBuilderExtensions.cs
Zdroj:
MvcXmlMvcCoreBuilderExtensions.cs

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

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddXmlDataContractSerializerFormatters (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.Formatters.Xml.MvcXmlOptions> setupAction);
static member AddXmlDataContractSerializerFormatters : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.Formatters.Xml.MvcXmlOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddXmlDataContractSerializerFormatters (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