XPathMessageFilter.WriteXPath(XmlWriter, IXmlNamespaceResolver) 方法

定義

將 XPath 篩選條件序列化成 XmlWriterSerializes the XPath filter to an 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 篩選條件的 XmlWriterThe XmlWriter used to serialize the XPath filter.

resolver
IXmlNamespaceResolver

用來解決任何 XPath 篩選條件命名空間衝突的 IXmlNamespaceResolverThe IXmlNamespaceResolver used to resolve any namespace conflict for the XPath filter.

備註

writer 必須處於啟動狀態。The writer must be in the Start state. 否則,會擲回例外狀況。Otherwise an exception is thrown.

適用於