RemoveAttribute()

XmlElement::RemoveAttribute(String) method

Removes an attribute by name.

virtual void System::Xml::XmlElement::RemoveAttribute(String name)

Arguments

ParameterTypeDescription
nameStringThe name of the attribute to remove. This is a qualified name. It is matched against the get_Name value of the matching node.

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

ParameterTypeDescription
localNameStringThe local name of the attribute to remove.
namespaceURIStringThe namespace URI of the attribute to remove.

See Also