Partilhar via


MvcXmlMvcCoreBuilderExtensions.AddXmlDataContractSerializerFormatters Método

Definição

Sobrecargas

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder)

Adiciona os formatadores XML DataContractSerializer ao MVC.

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

Adiciona os formatadores XML DataContractSerializer ao MVC.

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder)

Origem:
MvcXmlMvcCoreBuilderExtensions.cs
Origem:
MvcXmlMvcCoreBuilderExtensions.cs
Origem:
MvcXmlMvcCoreBuilderExtensions.cs

Adiciona os formatadores XML DataContractSerializer ao MVC.

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

Parâmetros

Retornos

O IMvcCoreBuilder.

Aplica-se a

AddXmlDataContractSerializerFormatters(IMvcCoreBuilder, Action<MvcXmlOptions>)

Origem:
MvcXmlMvcCoreBuilderExtensions.cs
Origem:
MvcXmlMvcCoreBuilderExtensions.cs

Adiciona os formatadores XML DataContractSerializer ao MVC.

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

Parâmetros

setupAction
Action<MvcXmlOptions>

O MvcXmlOptions que precisa ser configurado.

Retornos

O IMvcCoreBuilder.

Aplica-se a