AddXmlFormattersOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml.dll
AddXmlFormattersOptions(IMvcBuilder, Action<XmlFormatterOptions>)
Adds configuration of XmlFormatterOptions for the application.
public static IMvcBuilder AddXmlFormattersOptions(this IMvcBuilder builder, Action<XmlFormatterOptions> setup = null)
Parameters
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<XmlFormatterOptions>The XmlFormatterOptions which need to be configured.
Returns
- IMvcBuilder
A reference to
builderafter the operation has completed.
Exceptions
- ArgumentNullException
buildercannot be null.- ArgumentException
setupfailed to configure an instance of XmlFormatterOptions in a valid state.