XPathMessageFilter.WriteXPath(XmlWriter, IXmlNamespaceResolver) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 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)
参数
- resolver
- IXmlNamespaceResolver
用于解决 XPath 筛选器的任何命名空间冲突 IXmlNamespaceResolver。
注解
必须 writer
处于 “开始” 状态。 否则会引发异常。