共用方式為


XmlSerializerOutputFormatter.CreateXmlWriter 方法

定義

多載

CreateXmlWriter(TextWriter, XmlWriterSettings)

使用指定的 TextWriterXmlWriterSettings ,建立 的新實例 XmlWriter

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

使用指定的 TextWriterXmlWriterSettings ,建立 的新實例 XmlWriter

CreateXmlWriter(TextWriter, XmlWriterSettings)

來源:
XmlSerializerOutputFormatter.cs
來源:
XmlSerializerOutputFormatter.cs
來源:
XmlSerializerOutputFormatter.cs

使用指定的 TextWriterXmlWriterSettings ,建立 的新實例 XmlWriter

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

參數

writer
TextWriter

應該寫入的基礎 TextWriterXmlWriter

xmlWriterSettings
XmlWriterSettings

XmlWriterSettings

傳回

XmlWriter 的新執行個體。

適用於

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

來源:
XmlSerializerOutputFormatter.cs
來源:
XmlSerializerOutputFormatter.cs
來源:
XmlSerializerOutputFormatter.cs

使用指定的 TextWriterXmlWriterSettings ,建立 的新實例 XmlWriter

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

參數

context
OutputFormatterWriteContext

與呼叫相關聯的格式器內容。

writer
TextWriter

應該寫入的基礎 TextWriterXmlWriter

xmlWriterSettings
XmlWriterSettings

XmlWriterSettings

傳回

的新實例 XmlWriter

適用於