Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlElement::RemoveAttributeNode Method (XmlAttribute^)

 

Removes the specified XmlAttribute.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public:
virtual XmlAttribute^ RemoveAttributeNode(
	XmlAttribute^ oldAttr
)

Parameters

oldAttr
Type: System.Xml::XmlAttribute^

The XmlAttribute node to remove. If the removed attribute has a default value, it is immediately replaced.

Return Value

Type: System.Xml::XmlAttribute^

The removed XmlAttribute or null if oldAttr is not an attribute node of the XmlElement.

Exception Condition
ArgumentException

This node is read-only.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft