Share via


ParserAdapter.GetFeature(String) Method

Definition

Check a parser feature flag.

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

Parameters

name
String

The feature name, as a complete URI.

Returns

The current feature value.

Implements

Attributes

Exceptions

If the feature value can't be assigned or retrieved.

If the feature is not currently readable.

Remarks

Check a parser feature flag.

The only features recognized are namespaces and namespace-prefixes.

Java documentation for org.xml.sax.helpers.ParserAdapter.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

See also

  • <xref:Org.Xml.Sax.IXMLReader.SetFeature(System.String%2c+System.Boolean)>