Udostępnij za pośrednictwem


MvcXmlMvcCoreBuilderExtensions.AddXmlDataContractSerializerFormatters Metoda

Definicja

Przeciążenia

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder)

Dodaje formatatory XML DataContractSerializer do wzorca MVC.

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

Dodaje formatatory XML DataContractSerializer do wzorca MVC.

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder)

Źródło:
MvcXmlMvcCoreBuilderExtensions.cs
Źródło:
MvcXmlMvcCoreBuilderExtensions.cs
Źródło:
MvcXmlMvcCoreBuilderExtensions.cs

Dodaje formatatory XML DataContractSerializer do wzorca 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

builder
IMvcCoreBuilder

Element IMvcCoreBuilder.

Zwraca

Element IMvcCoreBuilder.

Dotyczy

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

Źródło:
MvcXmlMvcCoreBuilderExtensions.cs
Źródło:
MvcXmlMvcCoreBuilderExtensions.cs

Dodaje formatatory XML DataContractSerializer do wzorca 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

builder
IMvcCoreBuilder

Element IMvcCoreBuilder.

setupAction
Action<MvcXmlOptions>

Element MvcXmlOptions , który należy skonfigurować.

Zwraca

Element IMvcCoreBuilder.

Dotyczy