Share via


DtdEntity.ReplaceChild(IXmlNode, IXmlNode) Method

Definition

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.

Implements

Applies to