MvcXmlMvcBuilderExtensions.AddXmlDataContractSerializerFormatters 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddXmlDataContractSerializerFormatters(IMvcBuilder) |
将 XML DataContractSerializer 格式化程序添加到 MVC。 |
AddXmlDataContractSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>) |
将 XML DataContractSerializer 格式化程序添加到 MVC。 |
AddXmlDataContractSerializerFormatters(IMvcBuilder)
将 XML DataContractSerializer 格式化程序添加到 MVC。
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlDataContractSerializerFormatters (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);
static member AddXmlDataContractSerializerFormatters : Microsoft.Extensions.DependencyInjection.IMvcBuilder -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddXmlDataContractSerializerFormatters (builder As IMvcBuilder) As IMvcBuilder
参数
- builder
- IMvcBuilder
返回
适用于
AddXmlDataContractSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)
将 XML DataContractSerializer 格式化程序添加到 MVC。
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlDataContractSerializerFormatters (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.Formatters.Xml.MvcXmlOptions> setupAction);
static member AddXmlDataContractSerializerFormatters : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.Formatters.Xml.MvcXmlOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddXmlDataContractSerializerFormatters (builder As IMvcBuilder, setupAction As Action(Of MvcXmlOptions)) As IMvcBuilder
参数
- builder
- IMvcBuilder
- setupAction
- Action<MvcXmlOptions>
MvcXmlOptions需要配置的 。