SetNamedItem()
Contents
[
Hide
]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
| Parameter | Type | Description |
|---|---|---|
| node | SharedPtr<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.
Exceptions
| Exception | Description |
|---|---|
| ArgumentException | The node was created from a different XmlDocument than the one that created the XmlNamedNodeMap; or the XmlNamedNodeMap is read-only. |
See Also
- Typedef SharedPtr
- Class XmlNode
- Class XmlNamedNodeMap
- Namespace System::Xml
- Library Aspose.Slides