Share via


InitString.GetOrCreateAttributeNode(XmlNode, String) Method

Definition

Retrieves the attribute node under parent node, or create one if it does not exist.

protected:
 System::Xml::XmlNode ^ GetOrCreateAttributeNode(System::Xml::XmlNode ^ parentNode, System::String ^ childName);
protected System.Xml.XmlNode GetOrCreateAttributeNode (System.Xml.XmlNode parentNode, string childName);
member this.GetOrCreateAttributeNode : System.Xml.XmlNode * string -> System.Xml.XmlNode
Protected Function GetOrCreateAttributeNode (parentNode As XmlNode, childName As String) As XmlNode

Parameters

parentNode
XmlNode

Specifies the parent node.

childName
String

Specifies the name of the child.

Returns

Applies to