SetNamedItem()

XmlNamedNodeMap::SetNamedItem(SharedPtr<XmlNode>) method

Adds an XmlNode using its XmlNode::get_Name value.

virtual SharedPtr<XmlNode> System::Xml::XmlNamedNodeMap::SetNamedItem(SharedPtr<XmlNode> node)

Arguments

ParameterTypeDescription
nodeSharedPtr<XmlNode>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.

Return Value

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

See Also