MvcXmlMvcBuilderExtensions.AddXmlSerializerFormatters 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddXmlSerializerFormatters(IMvcBuilder) |
将 XML 序列化程序格式化程序添加到 MVC。 |
AddXmlSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>) |
将 XML 序列化程序格式化程序添加到 MVC。 |
AddXmlSerializerFormatters(IMvcBuilder)
将 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
参数
- builder
- IMvcBuilder
返回
适用于
AddXmlSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)
将 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
参数
- builder
- IMvcBuilder
- setupAction
- Action<MvcXmlOptions>
MvcXmlOptions需要配置的 。