Compartilhar via


XmlSerializerOutputFormatter.CreateXmlWriter Método

Definição

Sobrecargas

CreateXmlWriter(TextWriter, XmlWriterSettings)

Cria uma nova instância do XmlWriter usando o determinado TextWriter e XmlWriterSettingso .

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Cria uma nova instância do XmlWriter usando o determinado TextWriter e XmlWriterSettingso .

CreateXmlWriter(TextWriter, XmlWriterSettings)

Origem:
XmlSerializerOutputFormatter.cs
Origem:
XmlSerializerOutputFormatter.cs
Origem:
XmlSerializerOutputFormatter.cs

Cria uma nova instância do XmlWriter usando o determinado TextWriter e XmlWriterSettingso .

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

Parâmetros

writer
TextWriter

O subjacente TextWriter no qual o XmlWriter deve gravar.

xmlWriterSettings
XmlWriterSettings

O XmlWriterSettings.

Retornos

Uma nova instância de XmlWriter.

Aplica-se a

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Origem:
XmlSerializerOutputFormatter.cs
Origem:
XmlSerializerOutputFormatter.cs
Origem:
XmlSerializerOutputFormatter.cs

Cria uma nova instância do XmlWriter usando o determinado TextWriter e XmlWriterSettingso .

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

Parâmetros

context
OutputFormatterWriteContext

O contexto de formatador associado à chamada.

writer
TextWriter

O subjacente TextWriter no qual o XmlWriter deve gravar.

xmlWriterSettings
XmlWriterSettings

O XmlWriterSettings.

Retornos

Uma nova instância do XmlWriter

Aplica-se a