XmlDocumentFragment.ReplaceChild(IXmlNode, IXmlNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Replaces the specified old child node with the supplied new child node.
public:
virtual IXmlNode ^ ReplaceChild(IXmlNode ^ newChild, IXmlNode ^ referenceChild) = ReplaceChild;
IXmlNode ReplaceChild(IXmlNode const& newChild, IXmlNode const& referenceChild);
public IXmlNode ReplaceChild(IXmlNode newChild, IXmlNode referenceChild);
function replaceChild(newChild, referenceChild)
Public Function ReplaceChild (newChild As IXmlNode, referenceChild As IXmlNode) As IXmlNode
Parameters
- newChild
- IXmlNode
The new child that is to replace the old child. If null, the referenceChild parameter is removed without a replacement.
- referenceChild
- IXmlNode
The old child that is to be replaced by the new child.
Returns
The old child that is replaced. If null, no object is created.