MvcXmlMvcBuilderExtensions.AddXmlDataContractSerializerFormatters 方法

定义

重载

AddXmlDataContractSerializerFormatters(IMvcBuilder)

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

AddXmlDataContractSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

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

AddXmlDataContractSerializerFormatters(IMvcBuilder)

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

将 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

参数

返回

IMvcBuilder

适用于

AddXmlDataContractSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

Source:
MvcXmlMvcBuilderExtensions.cs
Source:
MvcXmlMvcBuilderExtensions.cs

将 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

参数

setupAction
Action<MvcXmlOptions>

MvcXmlOptions需要配置的 。

返回

IMvcBuilder

适用于