AddXmlFormattersOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml.dll
AddXmlFormattersOptions(IMvcCoreBuilder, Action<XmlFormatterOptions>)
Adds configuration of XmlFormatterOptions for the application.
public static IMvcCoreBuilder AddXmlFormattersOptions(this IMvcCoreBuilder builder, Action<XmlFormatterOptions> setup = null)
Parameters
builderIMvcCoreBuilderThe IMvcBuilder.
setupAction<XmlFormatterOptions>The XmlFormatterOptions which need to be configured.
Returns
- IMvcCoreBuilder
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.