XmlSerializerOutputFormatter.CreateXmlWriter Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
CreateXmlWriter(TextWriter, XmlWriterSettings) |
Crée une instance d’utilisation des XmlWriter données TextWriter et XmlWriterSettings. |
CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings) |
Crée une instance d’utilisation des XmlWriter données TextWriter et XmlWriterSettings. |
CreateXmlWriter(TextWriter, XmlWriterSettings)
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)
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