Dela via


XmlDataContractSerializerOutputFormatter.CreateXmlWriter Method

Definition

Overloads

CreateXmlWriter(TextWriter, XmlWriterSettings)

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

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

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

CreateXmlWriter(TextWriter, XmlWriterSettings)

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

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

public:
 virtual System::Xml::XmlWriter ^ CreateXmlWriter(System::IO::TextWriter ^ writer, System::Xml::XmlWriterSettings ^ xmlWriterSettings);
public virtual System.Xml.XmlWriter CreateXmlWriter (System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings);
abstract member CreateXmlWriter : System.IO.TextWriter * System.Xml.XmlWriterSettings -> System.Xml.XmlWriter
override this.CreateXmlWriter : System.IO.TextWriter * System.Xml.XmlWriterSettings -> System.Xml.XmlWriter
Public Overridable Function CreateXmlWriter (writer As TextWriter, xmlWriterSettings As XmlWriterSettings) As XmlWriter

Parameters

writer
TextWriter

The underlying TextWriter which the XmlWriter should write to.

xmlWriterSettings
XmlWriterSettings

The XmlWriterSettings.

Returns

A new instance of XmlWriter

Applies to

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.

public:
 virtual System::Xml::XmlWriter ^ CreateXmlWriter(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context, System::IO::TextWriter ^ writer, System::Xml::XmlWriterSettings ^ xmlWriterSettings);
public virtual System.Xml.XmlWriter CreateXmlWriter (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings);
abstract member CreateXmlWriter : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext * System.IO.TextWriter * System.Xml.XmlWriterSettings -> System.Xml.XmlWriter
override this.CreateXmlWriter : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext * System.IO.TextWriter * System.Xml.XmlWriterSettings -> System.Xml.XmlWriter
Public Overridable Function CreateXmlWriter (context As OutputFormatterWriteContext, writer As TextWriter, xmlWriterSettings As XmlWriterSettings) As XmlWriter

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