PrependChild()
Contents
[
Hide
]XmlAttribute::PrependChild(SharedPtr<XmlNode>) method
Adds the specified node to the beginning of the list of child nodes for this node.
SharedPtr<XmlNode> System::Xml::XmlAttribute::PrependChild(SharedPtr<XmlNode> newChild) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| newChild | SharedPtr<XmlNode> | The XmlNode to add. If it is an XmlDocumentFragment, the entire contents of the document fragment are moved into the child list of this node. |
Return Value
The XmlNode added.
Exceptions
| Exception | Description |
|---|---|
| InvalidOperationException | This node is of a type that does not allow child nodes of the type of the newChild node. The newChild is an ancestor of this node. |
| ArgumentException | The newChild was created from a different document than the one that created this node. This node is read-only. |
See Also
- Typedef SharedPtr
- Class XmlNode
- Class XmlAttribute
- Namespace System::Xml
- Library Aspose.Slides