Modifica

Condividi tramite


CustomXMLNode.AppendChildNode Method

Definition

Appends a single node as the last child under the context element node in the tree.

public void AppendChildNode (string Name = "", string NamespaceURI = "", Microsoft.Office.Core.MsoCustomXMLNodeType NodeType = Microsoft.Office.Core.MsoCustomXMLNodeType.msoCustomXMLNodeElement, string NodeValue = "");
abstract member AppendChildNode : string * string * Microsoft.Office.Core.MsoCustomXMLNodeType * string -> unit
Public Sub AppendChildNode (Optional Name As String = "", Optional NamespaceURI As String = "", Optional NodeType As MsoCustomXMLNodeType = Microsoft.Office.Core.MsoCustomXMLNodeType.msoCustomXMLNodeElement, Optional NodeValue As String = "")

Parameters

Name
String

Represents the base name of the element to be appended.

NamespaceURI
String

Represents the namespace of the element to be appended. This parameter is required to append nodes of type msoCustomXMLNodeElement or msoCustomXMLNodeAttribute, otherwise it is ignored.

NodeType
MsoCustomXMLNodeType

Specifies the type of node to append. If the parameter is not specified, it is assumed to be of type msoCustomXMLNodeElement.

NodeValue
String

Used to set the value of the appended node for those nodes that allow text. If the node doesn’t allow text, the parameter is ignored.

Remarks

If the context node is any type other than msoCustomXMLNodeElement, or if the operation would result in an invalid tree structure, the append is not performed and an error message is displayed.

Applies to