RemoveAttributeNode Method (XmlAttribute)
Collapse the table of content
Expand the table of content

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:
© 2016 Microsoft