XPathMessageFilter.WriteXPath(XmlWriter, IXmlNamespaceResolver) 方法

定义

将 XPath 筛选器序列化到 XmlWriter

protected:
 void WriteXPath(System::Xml::XmlWriter ^ writer, System::Xml::IXmlNamespaceResolver ^ resolver);
protected void WriteXPath (System.Xml.XmlWriter writer, System.Xml.IXmlNamespaceResolver resolver);
member this.WriteXPath : System.Xml.XmlWriter * System.Xml.IXmlNamespaceResolver -> unit
Protected Sub WriteXPath (writer As XmlWriter, resolver As IXmlNamespaceResolver)

参数

writer
XmlWriter

用于序列化 XPath 筛选器的 XmlWriter

resolver
IXmlNamespaceResolver

用于解决 XPath 筛选器的任何命名空间冲突 IXmlNamespaceResolver

注解

必须 writer 处于 “开始” 状态。 否则会引发异常。

适用于