IElement.RemoveAttribute(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes an attribute by name.
[Android.Runtime.Register("removeAttribute", "(Ljava/lang/String;)V", "GetRemoveAttribute_Ljava_lang_String_Handler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RemoveAttribute (string? name);
[<Android.Runtime.Register("removeAttribute", "(Ljava/lang/String;)V", "GetRemoveAttribute_Ljava_lang_String_Handler:Org.W3c.Dom.IElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RemoveAttribute : string -> unit
Parameters
- name
- String
The name of the attribute to remove.
- Attributes
Exceptions
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
Remarks
Removes an attribute by name. If a default value for the removed attribute is defined in the DTD, a new attribute immediately appears with the default value as well as the corresponding namespace URI, local name, and prefix when applicable. The implementation may handle default values from other schemas similarly but applications should use Document.normalizeDocument()
to guarantee this information is up-to-date. <br>If no attribute with this name is found, this method has no effect. <br>To remove an attribute by local name and namespace URI, use the removeAttributeNS
method.
Java documentation for org.w3c.dom.Element.removeAttribute(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.