XmlSerializerOutputFormatter Constructors

Definition

Overloads

XmlSerializerOutputFormatter()

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

Initializes a new instance of XmlSerializerOutputFormatter with default XmlWriterSettings.

C#
public XmlSerializerOutputFormatter ();

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

XmlSerializerOutputFormatter(ILoggerFactory)

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

Initializes a new instance of XmlSerializerOutputFormatter with default XmlWriterSettings.

C#
public XmlSerializerOutputFormatter (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);

Parameters

loggerFactory
ILoggerFactory

The ILoggerFactory.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

XmlSerializerOutputFormatter(XmlWriterSettings)

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

Initializes a new instance of XmlSerializerOutputFormatter.

C#
public XmlSerializerOutputFormatter (System.Xml.XmlWriterSettings writerSettings);

Parameters

writerSettings
XmlWriterSettings

The settings to be used by the XmlSerializer.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

XmlSerializerOutputFormatter(XmlWriterSettings, ILoggerFactory)

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

Initializes a new instance of XmlSerializerOutputFormatter

C#
public XmlSerializerOutputFormatter (System.Xml.XmlWriterSettings writerSettings, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);

Parameters

writerSettings
XmlWriterSettings

The settings to be used by the XmlSerializer.

loggerFactory
ILoggerFactory

The ILoggerFactory.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0