System::Xml::XmlAttributeCollection::SetNamedItem 方法
XmlAttributeCollection::SetNamedItem method
使用其 XmlNode::get_Name 结果添加一个 XmlNode。
SharedPtr<XmlNode> System::Xml::XmlAttributeCollection::SetNamedItem(SharedPtr<XmlNode> node) override
| Parameter | Type | 描述 |
|---|---|---|
| 节点 | SharedPtr<XmlNode> | 用于存储在此集合中的属性节点。该节点以后可通过节点的名称访问。如果集合中已存在同名节点,则会被新节点替换;否则,节点会被追加到集合的末尾。 |
ReturnValue
如果 node 替换了同名的现有节点,则返回旧节点;否则,返回添加的节点。
另见
- Typedef SharedPtr
- Class XmlNode
- Class XmlAttributeCollection
- Namespace System::Xml
- Library Aspose.Page for C++