Freigeben über


CustomXMLNode.ReplaceChildSubtree Method

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

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub ReplaceChildSubtree ( _
    XML As String, _
    OldNode As CustomXMLNode _
)
'Usage
Dim instance As CustomXMLNode
Dim XML As String
Dim OldNode As CustomXMLNode

instance.ReplaceChildSubtree(XML, OldNode)
void ReplaceChildSubtree(
    string XML,
    CustomXMLNode OldNode
)

Parameters

Remarks

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

See Also

Reference

CustomXMLNode Interface

CustomXMLNode Members

Microsoft.Office.Core Namespace