XPathMessageFilter.OnReadXml(XmlReader) 方法

定義

讀取目前的 XML 節點。Reads the current XML node.

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

參數

reader
XmlReader

用來讀取 XML 文件的 XmlReaderThe XmlReader used to read the XML document.

例外狀況

readernullreader is null.

reader 不是位於開始項目上。reader is not positioned on the starting element.

-或--or-

reader 遇到空項目。reader encountered an empty element.

節點的內容無效。Content of a node is invalid.

適用於