共用方式為


XPathFactory.SetXPathVariableResolver(IXPathVariableResolver) 方法

定義

建立預設變數解析程式。

[Android.Runtime.Register("setXPathVariableResolver", "(Ljavax/xml/xpath/XPathVariableResolver;)V", "GetSetXPathVariableResolver_Ljavax_xml_xpath_XPathVariableResolver_Handler")]
public abstract void SetXPathVariableResolver (Javax.Xml.Xpath.IXPathVariableResolver? resolver);
[<Android.Runtime.Register("setXPathVariableResolver", "(Ljavax/xml/xpath/XPathVariableResolver;)V", "GetSetXPathVariableResolver_Ljavax_xml_xpath_XPathVariableResolver_Handler")>]
abstract member SetXPathVariableResolver : Javax.Xml.Xpath.IXPathVariableResolver -> unit

參數

resolver
IXPathVariableResolver

變數解析程式。

屬性

例外狀況

如果 resolvernull

備註

建立預設變數解析程式。

從這個處理站建構的任何 XPath 物件預設都會使用指定的解析程式。

NullPointerException如果 resolvernull,則會擲回 。

javax.xml.xpath.XPathFactory.setXPathVariableResolver(javax.xml.xpath.XPathVariableResolver)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於