XmlDataContractSerializerOutputFormatter.CreateXmlWriter Method

Definition

Overloads

CreateXmlWriter(TextWriter, XmlWriterSettings)

Source:
XmlDataContractSerializerOutputFormatter.cs
Source:
XmlDataContractSerializerOutputFormatter.cs
Source:
XmlDataContractSerializerOutputFormatter.cs

Creates a new instance of XmlWriter using the given TextWriter and XmlWriterSettings.

C#
public virtual System.Xml.XmlWriter CreateXmlWriter (System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings);

Parameters

writer
TextWriter

The underlying TextWriter which the XmlWriter should write to.

xmlWriterSettings
XmlWriterSettings

The XmlWriterSettings.

Returns

A new instance of XmlWriter

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

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Source:
XmlDataContractSerializerOutputFormatter.cs
Source:
XmlDataContractSerializerOutputFormatter.cs
Source:
XmlDataContractSerializerOutputFormatter.cs

Creates a new instance of XmlWriter using the given TextWriter and XmlWriterSettings.

C#
public virtual System.Xml.XmlWriter CreateXmlWriter (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings);

Parameters

context
OutputFormatterWriteContext

The formatter context associated with the call.

writer
TextWriter

The underlying TextWriter which the XmlWriter should write to.

xmlWriterSettings
XmlWriterSettings

The XmlWriterSettings.

Returns

A new instance of XmlWriter.

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