Sdílet prostřednictvím


XPathFactory.GetFeature(String) Method

Definition

Get the state of the named feature.

[Android.Runtime.Register("getFeature", "(Ljava/lang/String;)Z", "GetGetFeature_Ljava_lang_String_Handler")]
public abstract bool GetFeature (string? name);
[<Android.Runtime.Register("getFeature", "(Ljava/lang/String;)Z", "GetGetFeature_Ljava_lang_String_Handler")>]
abstract member GetFeature : string -> bool

Parameters

name
String

Feature name.

Returns

State of the named feature.

Attributes

Exceptions

if this XPathFactory or the XPaths it creates cannot support this feature.

if name is null.

Remarks

Get the state of the named feature.

Feature names are fully qualified java.net.URIs. Implementations may define their own features. An XPathFactoryConfigurationException is thrown if this XPathFactory or the XPaths it creates cannot support the feature. It is possible for an XPathFactory to expose a feature value but be unable to change its state.

Java documentation for javax.xml.xpath.XPathFactory.getFeature(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to