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.

适用于