InsertBefore()
Contents
[
Hide
]XmlAttribute::InsertBefore(SharedPtr<XmlNode>, SharedPtr<XmlNode>) method
Inserts the specified node immediately before the specified reference node.
SharedPtr<XmlNode> System::Xml::XmlAttribute::InsertBefore(SharedPtr<XmlNode> newChild, SharedPtr<XmlNode> refChild) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| newChild | SharedPtr<XmlNode> | The XmlNode to insert. |
| refChild | SharedPtr<XmlNode> | The XmlNode that is the reference node. The newChild is placed before this node. |
Return Value
The XmlNode inserted.
Exceptions
| Exception | Description |
|---|---|
| InvalidOperationException | The current 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. The refChild is not a child of this node. This node is read-only. |
See Also
- Typedef SharedPtr
- Class XmlNode
- Class XmlAttribute
- Namespace System::Xml
- Library Aspose.Slides