System::Xml::XmlAttributeCollection::SetNamedItem method

XmlAttributeCollection::SetNamedItem method

Adds an XmlNode using its XmlNode::get_Name result.

SharedPtr<XmlNode> System::Xml::XmlAttributeCollection::SetNamedItem(SharedPtr<XmlNode> node) override
ParameterTypeDescription
nodeSharedPtr<XmlNode>An attribute node to store in this collection. The node will later be accessible using the name of the node. If a node with that name is already present in the collection, it is replaced by the new one; otherwise, the node is appended to the end of the collection.

ReturnValue

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

See Also