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