Table of Contents

AddXmlFormatters Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml
Assemblies
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml.dll
Source
src/Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml/MvcBuilderExtensions.cs

AddXmlFormatters(IMvcBuilder, Action<XmlFormatterOptions>)

Adds the XML serializer formatters to MVC.

public static IMvcBuilder AddXmlFormatters(this IMvcBuilder builder, Action<XmlFormatterOptions> setup = null)

Parameters

builder IMvcBuilder

The IMvcBuilder to extend.

setup Action<XmlFormatterOptions>

The XmlFormatterOptions which may be configured.

Returns

IMvcBuilder

A reference to builder after the operation has completed.

Exceptions

ArgumentNullException

builder cannot be null -or- setup cannot be null.