Freigeben über


XmlDataContractSerializerOutputFormatter.CreateXmlWriter Methode

Definition

Überlädt

CreateXmlWriter(TextWriter, XmlWriterSettings)

Erstellt eine neue instance der Verwendung der XmlWriter angegebenen TextWriter und XmlWriterSettings.

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Erstellt eine neue instance der Verwendung der XmlWriter angegebenen TextWriter und XmlWriterSettings.

CreateXmlWriter(TextWriter, XmlWriterSettings)

Quelle:
XmlDataContractSerializerOutputFormatter.cs
Quelle:
XmlDataContractSerializerOutputFormatter.cs
Quelle:
XmlDataContractSerializerOutputFormatter.cs

Erstellt eine neue instance der Verwendung der XmlWriter angegebenen TextWriter und 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

Parameter

writer
TextWriter

Die zugrunde liegende TextWriter , in die geschrieben XmlWriter werden soll.

xmlWriterSettings
XmlWriterSettings

Die XmlWriterSettings.

Gibt zurück

Eine neue instance vonXmlWriter

Gilt für:

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Quelle:
XmlDataContractSerializerOutputFormatter.cs
Quelle:
XmlDataContractSerializerOutputFormatter.cs
Quelle:
XmlDataContractSerializerOutputFormatter.cs

Erstellt eine neue instance der Verwendung der XmlWriter angegebenen TextWriter und 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

Parameter

context
OutputFormatterWriteContext

Der dem Aufruf zugeordnete Formatiererkontext.

writer
TextWriter

Die zugrunde liegende TextWriter , in die geschrieben XmlWriter werden soll.

xmlWriterSettings
XmlWriterSettings

Die XmlWriterSettings.

Gibt zurück

Eine neue Instanz von XmlWriter.

Gilt für: