Export (0) Print
Expand All

XmlAttribute.RemoveChild Method

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.

ExceptionCondition
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft