CustomXMLNode.InsertSubtreeBefore(String, CustomXMLNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts the specified subtree into the location just before the context node.
public void InsertSubtreeBefore (string XML, Microsoft.Office.Core.CustomXMLNode NextSibling = default);
abstract member InsertSubtreeBefore : string * Microsoft.Office.Core.CustomXMLNode -> unit
Public Sub InsertSubtreeBefore (XML As String, Optional NextSibling As CustomXMLNode = Nothing)
Parameters
- XML
- String
Represents the subtree to be added.
- NextSibling
- CustomXMLNode
Specifies the context node.
Remarks
If the NextSibling
parameter is not a child of the context node or if the operation would result in an invalid tree structure, the insertion is not performed and an error message is displayed.