IXmlSerializer.SetFeature(String, Boolean) Method

Definition

Set feature identified by name (recommended to be URI for uniqueness).

[Android.Runtime.Register("setFeature", "(Ljava/lang/String;Z)V", "GetSetFeature_Ljava_lang_String_ZHandler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetFeature (string? name, bool state);
[<Android.Runtime.Register("setFeature", "(Ljava/lang/String;Z)V", "GetSetFeature_Ljava_lang_String_ZHandler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetFeature : string * bool -> unit

Parameters

name
String
state
Boolean
Attributes

Exceptions

If the feature is not supported or can not be set

Remarks

Set feature identified by name (recommended to be URI for uniqueness). Some well known optional features are defined in http://www.xmlpull.org/v1/doc/features.html.

If feature is not recognized or can not be set then IllegalStateException MUST be thrown.

Java documentation for org.xmlpull.v1.XmlSerializer.setFeature(java.lang.String, boolean).

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