XmlSerializationReader.ReadXmlDocument(Boolean) 方法

定义

XmlReader指示读取位于其当前位置的 XML 文档根元素。

此 API 支持产品基础结构,不能在代码中直接使用。

protected:
 System::Xml::XmlDocument ^ ReadXmlDocument(bool wrapped);
protected System.Xml.XmlDocument? ReadXmlDocument(bool wrapped);
protected System.Xml.XmlDocument ReadXmlDocument(bool wrapped);
member this.ReadXmlDocument : bool -> System.Xml.XmlDocument
Protected Function ReadXmlDocument (wrapped As Boolean) As XmlDocument

参数

wrapped
Boolean

true 如果方法在读取元素的 start 元素后应仅读取内容,则为 ;否则,为 false.

返回

一个 XmlDocument 包含已读取的根元素。

注解

XmlSerializationReader的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。

适用于