Partager via


MvcXmlMvcBuilderExtensions.AddXmlDataContractSerializerFormatters Méthode

Définition

Surcharges

AddXmlDataContractSerializerFormatters(IMvcBuilder)

Ajoute les formateurs DataContractSerializer XML à MVC.

AddXmlDataContractSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

Ajoute les formateurs DataContractSerializer XML à MVC.

AddXmlDataContractSerializerFormatters(IMvcBuilder)

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

Ajoute les formateurs DataContractSerializer XML à 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

Paramètres

builder
IMvcBuilder

L’IMvcBuilderopérateur

Retours

L’IMvcBuilderopérateur

S’applique à

AddXmlDataContractSerializerFormatters(IMvcBuilder, Action<MvcXmlOptions>)

Source:
MvcXmlMvcBuilderExtensions.cs
Source:
MvcXmlMvcBuilderExtensions.cs

Ajoute les formateurs DataContractSerializer XML à 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

Paramètres

builder
IMvcBuilder

L’IMvcBuilderopérateur

setupAction
Action<MvcXmlOptions>

MvcXmlOptions qui doivent être configurés.

Retours

L’IMvcBuilderopérateur

S’applique à