XmlSerializer.CreateReader XmlSerializer.CreateReader XmlSerializer.CreateReader XmlSerializer.CreateReader Method

定義

傳回物件,該物件用於讀取要序列化的 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

傳回

例外狀況

當方法在子代類別中未覆寫時,會嘗試存取該方法。Any attempt is made to access the method when the method is not overridden in a descendant class.

適用於