XmlAttribute.RemoveChild Method (XmlNode)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the specified child node.

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

public override XmlNode RemoveChild(
	XmlNode oldChild
)

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: