Udostępnij za pośrednictwem


XmlSerializerOutputFormatter.CreateXmlWriter Metoda

Definicja

Przeciążenia

CreateXmlWriter(TextWriter, XmlWriterSettings)

Tworzy nowe wystąpienie XmlWriter obiektu przy użyciu danych TextWriter i XmlWriterSettings.

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Tworzy nowe wystąpienie XmlWriter obiektu przy użyciu danych TextWriter i XmlWriterSettings.

CreateXmlWriter(TextWriter, XmlWriterSettings)

Źródło:
XmlSerializerOutputFormatter.cs
Źródło:
XmlSerializerOutputFormatter.cs
Źródło:
XmlSerializerOutputFormatter.cs

Tworzy nowe wystąpienie XmlWriter obiektu przy użyciu danych TextWriter i 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

Parametry

writer
TextWriter

Element bazowy TextWriter , do którego powinien być zapisywany XmlWriter element .

xmlWriterSettings
XmlWriterSettings

Element XmlWriterSettings.

Zwraca

Nowe wystąpienie elementu XmlWriter.

Dotyczy

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Źródło:
XmlSerializerOutputFormatter.cs
Źródło:
XmlSerializerOutputFormatter.cs
Źródło:
XmlSerializerOutputFormatter.cs

Tworzy nowe wystąpienie XmlWriter obiektu przy użyciu danych TextWriter i 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

Parametry

context
OutputFormatterWriteContext

Kontekst formatujący skojarzony z wywołaniem.

writer
TextWriter

Element bazowy TextWriter , do którego powinien być zapisywany XmlWriter element .

xmlWriterSettings
XmlWriterSettings

Element XmlWriterSettings.

Zwraca

Nowe wystąpienie klasy XmlWriter

Dotyczy