다음을 통해 공유


XmlSerializerOutputFormatter.CreateXmlWriter 메서드

정의

오버로드

CreateXmlWriter(TextWriter, XmlWriterSettings)

지정된 TextWriterXmlWriterSettings를 사용하여 의 XmlWriter 새 instance 만듭니다.

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

지정된 TextWriterXmlWriterSettings를 사용하여 의 XmlWriter 새 instance 만듭니다.

CreateXmlWriter(TextWriter, XmlWriterSettings)

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

지정된 TextWriterXmlWriterSettings를 사용하여 의 XmlWriter 새 instance 만듭니다.

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

에 기록해야 하는 XmlWriter 기본 TextWriter 입니다.

반환

XmlWriter의 새 인스턴스입니다.

적용 대상

CreateXmlWriter(OutputFormatterWriteContext, TextWriter, XmlWriterSettings)

Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs
Source:
XmlSerializerOutputFormatter.cs

지정된 TextWriterXmlWriterSettings를 사용하여 의 XmlWriter 새 instance 만듭니다.

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

에 기록해야 하는 XmlWriter 기본 TextWriter 입니다.

반환

의 새 instanceXmlWriter

적용 대상