XmlDataContractSerializerOutputFormatter.CreateXmlWriter Metodo

Definizione

Overload

CreateXmlWriter(TextWriter, XmlWriterSettings)

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

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

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

CreateXmlWriter(TextWriter, XmlWriterSettings)

Origine:
XmlDataContractSerializerOutputFormatter.cs
Origine:
XmlDataContractSerializerOutputFormatter.cs
Origine:
XmlDataContractSerializerOutputFormatter.cs

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

Oggetto sottostante TextWriter in cui deve essere scritto l'oggetto XmlWriter .

xmlWriterSettings
XmlWriterSettings

Oggetto XmlWriterSettings.

Restituisce

Nuova istanza di XmlWriter

Si applica a

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Origine:
XmlDataContractSerializerOutputFormatter.cs
Origine:
XmlDataContractSerializerOutputFormatter.cs
Origine:
XmlDataContractSerializerOutputFormatter.cs

Crea una nuova istanza di XmlWriter utilizzando l'oggetto TextWriter specificato 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 del formattatore associato alla chiamata.

writer
TextWriter

Oggetto sottostante TextWriter in cui deve essere scritto l'oggetto XmlWriter .

xmlWriterSettings
XmlWriterSettings

Oggetto XmlWriterSettings.

Restituisce

Nuova istanza di XmlWriter.

Si applica a