Edit

Share via


CustomXMLNode.ReplaceChildSubtree(String, CustomXMLNode) Method

Definition

Removes the specified node (and its subtree) from the main tree, and replaces it with a different subtree in the same location.

public:
 void ReplaceChildSubtree(System::String ^ XML, Microsoft::Office::Core::CustomXMLNode ^ OldNode);
public void ReplaceChildSubtree (string XML, Microsoft.Office.Core.CustomXMLNode OldNode);
abstract member ReplaceChildSubtree : string * Microsoft.Office.Core.CustomXMLNode -> unit
Public Sub ReplaceChildSubtree (XML As String, OldNode As CustomXMLNode)

Parameters

XML
String

Represents the subtree to be added.

OldNode
CustomXMLNode

Represents the child node to be replaced.

Remarks

If the operation would result in an invalid tree structure, the replacement operation is not performed and an error message is displayed.

Applies to