Condividi tramite


XmlSerializerOutputFormatter.CreateXmlWriter Metodo

Definizione

Overload

CreateXmlWriter(TextWriter, XmlWriterSettings)

Crea una nuova istanza di XmlWriter usando l'oggetto specificato TextWriter e XmlWriterSettings.

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Crea una nuova istanza di XmlWriter usando l'oggetto specificato TextWriter e XmlWriterSettings.

CreateXmlWriter(TextWriter, XmlWriterSettings)

Origine:
XmlSerializerOutputFormatter.cs
Origine:
XmlSerializerOutputFormatter.cs
Origine:
XmlSerializerOutputFormatter.cs

Crea una nuova istanza di XmlWriter usando l'oggetto specificato TextWriter e 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

Parametri

writer
TextWriter

Sottostante TextWriter a cui deve XmlWriter essere scritto.

xmlWriterSettings
XmlWriterSettings

Oggetto XmlWriterSettings.

Restituisce

Nuova istanza di XmlWriter.

Si applica a

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Origine:
XmlSerializerOutputFormatter.cs
Origine:
XmlSerializerOutputFormatter.cs
Origine:
XmlSerializerOutputFormatter.cs

Crea una nuova istanza di XmlWriter usando l'oggetto specificato TextWriter e 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

Parametri

context
OutputFormatterWriteContext

Contesto formattatore associato alla chiamata.

writer
TextWriter

Sottostante TextWriter a cui deve XmlWriter essere scritto.

xmlWriterSettings
XmlWriterSettings

Oggetto XmlWriterSettings.

Restituisce

Nuova istanza di XmlWriter

Si applica a