ConfigurationSection.DeserializeSection(XmlReader) ConfigurationSection.DeserializeSection(XmlReader) ConfigurationSection.DeserializeSection(XmlReader) ConfigurationSection.DeserializeSection(XmlReader) Method

定义

从配置文件读取 XML。Reads XML from the configuration file.

protected public:
 virtual void DeserializeSection(System::Xml::XmlReader ^ reader);
protected internal virtual void DeserializeSection (System.Xml.XmlReader reader);
abstract member DeserializeSection : System.Xml.XmlReader -> unit
override this.DeserializeSection : System.Xml.XmlReader -> unit
Protected Friend Overridable Sub DeserializeSection (reader As XmlReader)

参数

reader
XmlReader XmlReader XmlReader XmlReader

XmlReader 对象,它从配置文件进行读取。The XmlReader object, which reads from the configuration file.

异常

reader 在配置文件中找不到元素。reader found no elements in the configuration file.

注解

反序列化是指从配置文件读取 XML 数据,将其转换为实时数据,并将其存储在对象中。Deserialization refers to the reading of XML data from a configuration file, its transformation into real-time data, and its storage in an object.

适用于