Share via


AttributesImpl.SetAttribute Method

Definition

Set an attribute in the list.

[Android.Runtime.Register("setAttribute", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetSetAttribute_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void SetAttribute (int index, string? uri, string? localName, string? qName, string? type, string? value);
[<Android.Runtime.Register("setAttribute", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetSetAttribute_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member SetAttribute : int * string * string * string * string * string -> unit
override this.SetAttribute : int * string * string * string * string * string -> unit

Parameters

index
Int32

The index of the attribute (zero-based).

uri
String

The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.

localName
String

The local name, or the empty string if Namespace processing is not being performed.

qName
String

The qualified name, or the empty string if qualified names are not available.

type
String

The attribute type as a string.

value
String

The attribute value.

Attributes

Exceptions

When the supplied index does not point to an attribute in the list.

Remarks

Set an attribute in the list.

For the sake of speed, this method does no checking for name conflicts or well-formedness: such checks are the responsibility of the application.

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