XPathMessageFilter.ReadXPath(XmlReader, XmlNamespaceManager) 方法

定義

使用指定的命名空間管理員,從已指定 XML 讀取器取得的 XPath,初始化 XPathMessageFilter 的目前執行個體。Initializes the current instance of the XPathMessageFilter with an XPath obtained from a specified XML reader using a specified namespace manager.

protected:
 void ReadXPath(System::Xml::XmlReader ^ reader, System::Xml::XmlNamespaceManager ^ namespaces);
protected void ReadXPath (System.Xml.XmlReader reader, System.Xml.XmlNamespaceManager namespaces);
member this.ReadXPath : System.Xml.XmlReader * System.Xml.XmlNamespaceManager -> unit
Protected Sub ReadXPath (reader As XmlReader, namespaces As XmlNamespaceManager)

參數

reader
XmlReader

用來還原序列化 XPath 篩選條件的 XmlReaderThe XmlReader used to deserialize the XPath filter.

namespaces
XmlNamespaceManager

用來管理要從其中讀取之命名空間的 XmlNamespaceManagerThe XmlNamespaceManager used to manage the namespaces being read from.

備註

命名空間管理員執行個體可以是用於解析函式和變數的 XsltContextThe namespace manager instance can be an XsltContext that is used to resolve functions and variables.

適用於