XmlAttribute::RemoveChild Method (XmlNode^)

 

Removes the specified child node.

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

public:
virtual XmlNode^ RemoveChild(
	XmlNode^ oldChild
) override

Parameters

oldChild
Type: System.Xml::XmlNode^

The XmlNode to remove.

Return Value

Type: System.Xml::XmlNode^

The XmlNode removed.

Exception Condition
ArgumentException

The oldChild is not a child of this node. Or this node is read-only.

For an example of the RemoveChild method, see the RemoveChild method.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show: