XmlSerializer.CreateWriter 方法

定义

当在派生类中重写时,返回用于序列化对象的编写器。When overridden in a derived class, returns a writer used to serialize the object.

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 类的实例。An instance that implements the XmlSerializationWriter class.

例外

当未在子类中重写该方法时,为访问该方法进行的任何尝试。Any attempt is made to access the method when the method is not overridden in a descendant class.

适用于