MvcXmlMvcCoreBuilderExtensions.AddXmlSerializerFormatters 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
AddXmlSerializerFormatters(IMvcCoreBuilder) |
Dodaje formatatory serializatora XML do wzorca MVC. |
AddXmlSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>) |
Dodaje formatatory serializatora XML do wzorca MVC. |
AddXmlSerializerFormatters(IMvcCoreBuilder)
Dodaje formatatory serializatora XML do wzorca 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
- builder
- IMvcCoreBuilder
Element IMvcCoreBuilder.
Zwraca
Element IMvcCoreBuilder.
Dotyczy
AddXmlSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)
Dodaje formatatory serializatora XML do wzorca 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
- builder
- IMvcCoreBuilder
Element IMvcCoreBuilder.
- setupAction
- Action<MvcXmlOptions>
Należy MvcXmlOptions skonfigurować te elementy.
Zwraca
Element IMvcCoreBuilder.