Partager via


XmlSerializerOutputFormatter.CreateXmlWriter Méthode

Définition

Surcharges

CreateXmlWriter(TextWriter, XmlWriterSettings)

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

Crée une instance d’utilisation des XmlWriter données TextWriter et 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

Paramètres

writer
TextWriter

Sous-jacent TextWriter dans lequel le XmlWriter doit écrire.

xmlWriterSettings
XmlWriterSettings

L’XmlWriterSettingsopérateur

Retours

Nouvelle instance de XmlWriter.

S’applique à

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

Crée une instance d’utilisation des XmlWriter données TextWriter et 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

Paramètres

context
OutputFormatterWriteContext

Contexte du formateur associé à l’appel.

writer
TextWriter

Sous-jacent TextWriter dans lequel le XmlWriter doit écrire.

xmlWriterSettings
XmlWriterSettings

L’XmlWriterSettingsopérateur

Retours

Une nouvelle instance deXmlWriter

S’applique à