MvcXmlMvcCoreBuilderExtensions.AddXmlDataContractSerializerFormatters Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
AddXmlDataContractSerializerFormatters(IMvcCoreBuilder) |
Dodaje formatatory XML DataContractSerializer do wzorca MVC. |
AddXmlDataContractSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>) |
Dodaje formatatory XML DataContractSerializer do wzorca MVC. |
AddXmlDataContractSerializerFormatters(IMvcCoreBuilder)
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>)
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.