AttributeListImpl.AddAttribute(String, String, String) Method

Definition

Caution

deprecated

Add an attribute to an attribute list.

[Android.Runtime.Register("addAttribute", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetAddAttribute_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual void AddAttribute (string? name, string? type, string? value);
[<Android.Runtime.Register("addAttribute", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetAddAttribute_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member AddAttribute : string * string * string -> unit
override this.AddAttribute : string * string * string -> unit

Parameters

name
String

The attribute name.

type
String

The attribute type ("NMTOKEN" for an enumeration).

value
String

The attribute value (must not be null).

Attributes

Remarks

Add an attribute to an attribute list.

This method is provided for SAX parser writers, to allow them to build up an attribute list incrementally before delivering it to the application.

Java documentation for org.xml.sax.helpers.AttributeListImpl.addAttribute(java.lang.String, java.lang.String, 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

  • RemoveAttribute(String)
  • <xref:Org.Xml.Sax.IDocumentHandler.StartElement(System.String%2c+Org.Xml.Sax.IAttributeList)>