System.Xml.XmlNamedNodeMap.SetNamedItem Method

Adds an System.Xml.XmlNode using its XmlNode.Name property.

Syntax

public virtual XmlNode SetNamedItem (XmlNode node)

Parameters

node
An XmlNode to store in the XmlNamedNodeMap. If a node with that name is already present in the map, it is replaced by the new one.

Returns

If the node replaces an existing node with the same name, the old node is returned; otherwise, null is returned.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0