XmlElement::RemoveAttribute(String) method
Removes an attribute by name.
virtual void System::Xml::XmlElement::RemoveAttribute(String name)
Arguments
| Parameter | Type | Description |
|---|
| name | String | The name of the attribute to remove. This is a qualified name. It is matched against the get_Name value of the matching node. |
Exceptions
| Exception | Description |
|---|
| ArgumentException | The node is read-only. |
XmlElement::RemoveAttribute(String, String) method
Removes an attribute with the specified local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced).
virtual void System::Xml::XmlElement::RemoveAttribute(String localName, String namespaceURI)
Arguments
| Parameter | Type | Description |
|---|
| localName | String | The local name of the attribute to remove. |
| namespaceURI | String | The namespace URI of the attribute to remove. |
Exceptions
| Exception | Description |
|---|
| ArgumentException | The node is read-only. |
See Also