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/MvcCoreBuilderExtensions.cs

AddXmlFormatters(IMvcCoreBuilder, Action<XmlFormatterOptions>)

Adds the XML serializer formatters to MVC.

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

Parameters

builder IMvcCoreBuilder

The IMvcCoreBuilder.

setup Action<XmlFormatterOptions>

The XmlFormatterOptions which may be configured.

Returns

IMvcCoreBuilder

A reference to builder after the operation has completed.

Exceptions

ArgumentNullException

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