Sdílet prostřednictvím


XmlSerializerOutputFormatter.CreateXmlWriter Metoda

Definice

Přetížení

CreateXmlWriter(TextWriter, XmlWriterSettings)

Vytvoří novou instanci objektu XmlWriter s použitím dané TextWriter instance a XmlWriterSettings.

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Vytvoří novou instanci objektu XmlWriter s použitím dané TextWriter instance a XmlWriterSettings.

CreateXmlWriter(TextWriter, XmlWriterSettings)

Zdroj:
XmlSerializerOutputFormatter.cs
Zdroj:
XmlSerializerOutputFormatter.cs
Zdroj:
XmlSerializerOutputFormatter.cs

Vytvoří novou instanci objektu XmlWriter s použitím dané TextWriter instance a 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

Parametry

writer
TextWriter

Podkladová hodnota TextWriter , do XmlWriter které by se měl zapisovat.

xmlWriterSettings
XmlWriterSettings

Hodnota XmlWriterSettings

Návraty

Nová instance .XmlWriter

Platí pro

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Zdroj:
XmlSerializerOutputFormatter.cs
Zdroj:
XmlSerializerOutputFormatter.cs
Zdroj:
XmlSerializerOutputFormatter.cs

Vytvoří novou instanci objektu XmlWriter s použitím dané TextWriter instance a 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

Parametry

context
OutputFormatterWriteContext

Kontext formátovače přidružený k volání.

writer
TextWriter

Podkladová hodnota TextWriter , do XmlWriter které by se měl zapisovat.

xmlWriterSettings
XmlWriterSettings

Hodnota XmlWriterSettings

Návraty

Nová instance XmlWriter

Platí pro