XmlSerializer.CreateWriter 方法

定义

当在派生类中重写时,返回用于序列化对象的编写器。

protected:
 virtual System::Xml::Serialization::XmlSerializationWriter ^ CreateWriter();
protected virtual System.Xml.Serialization.XmlSerializationWriter CreateWriter ();
abstract member CreateWriter : unit -> System.Xml.Serialization.XmlSerializationWriter
override this.CreateWriter : unit -> System.Xml.Serialization.XmlSerializationWriter
Protected Overridable Function CreateWriter () As XmlSerializationWriter

返回

实现 XmlSerializationWriter 类的实例。

例外

当未在子类中重写该方法时,为访问该方法进行的任何尝试。

适用于