共用方式為


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必須處於 啟動 狀態。 否則,會擲回例外狀況。

適用於