Sdílet prostřednictvím


XmlDataContractSerializerOutputFormatter.CreateXmlWriter Metoda

Definice

Přetížení

CreateXmlWriter(TextWriter, XmlWriterSettings)

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

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

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

CreateXmlWriter(TextWriter, XmlWriterSettings)

Zdroj:
XmlDataContractSerializerOutputFormatter.cs
Zdroj:
XmlDataContractSerializerOutputFormatter.cs
Zdroj:
XmlDataContractSerializerOutputFormatter.cs

Vytvoří novou instanci 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

Podklad, TextWriter do XmlWriter kterého by měl zapisovat.

xmlWriterSettings
XmlWriterSettings

Hodnota XmlWriterSettings

Návraty

Nová instance XmlWriter

Platí pro

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Zdroj:
XmlDataContractSerializerOutputFormatter.cs
Zdroj:
XmlDataContractSerializerOutputFormatter.cs
Zdroj:
XmlDataContractSerializerOutputFormatter.cs

Vytvoří novou instanci 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

Podklad, TextWriter do XmlWriter kterého by měl zapisovat.

xmlWriterSettings
XmlWriterSettings

Hodnota XmlWriterSettings

Návraty

Nová instance objektu XmlWriter.

Platí pro