MvcXmlMvcBuilderExtensions.AddXmlSerializerFormatters 方法

定义

重载

AddXmlSerializerFormatters(IMvcBuilder)

将 XML 序列化程序格式化程序添加到 MVC。

AddXmlSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

将 XML 序列化程序格式化程序添加到 MVC。

AddXmlSerializerFormatters(IMvcBuilder)

Source:
MvcXmlMvcBuilderExtensions.cs
Source:
MvcXmlMvcBuilderExtensions.cs
Source:
MvcXmlMvcBuilderExtensions.cs

将 XML 序列化程序格式化程序添加到 MVC。

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

参数

返回

IMvcBuilder

适用于

AddXmlSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

Source:
MvcXmlMvcBuilderExtensions.cs
Source:
MvcXmlMvcBuilderExtensions.cs

将 XML 序列化程序格式化程序添加到 MVC。

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

参数

setupAction
Action<MvcXmlOptions>

MvcXmlOptions需要配置的 。

返回

IMvcBuilder

适用于