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;否則為 false

傳回

XmlDocument,其中含有已經讀取的根項目。

備註

的受保護成員 XmlSerializationReader 僅供在 .NET Framework XML 序列化基礎結構內部使用的衍生類別使用。

適用於