XmlSerializer.CreateReader 方法

定义

返回一个对象,该对象用于读取要进行序列化的 XML 文档。Returns an object used to read the XML document to be serialized.

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

返回

一个用于读取 XML 文档的 XmlSerializationReaderAn XmlSerializationReader used to read the XML document.

例外

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

适用于