XmlHelpAddAttribute Method

Adds an XmlAttribute to the parent node.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public static XmlNode AddAttribute(
	string name,
	string? text,
	XmlNode parent
)

Parameters

name  String
The name of the XmlAttribute to add.
text  String
The InnerText the XmlAttribute will have.
parent  XmlNode
The XmlNode to which you want to add this XmlAttribute.

Return Value

XmlNode
An XmlAttribute.

Exceptions

ArgumentNullExceptionThrown if parent is null.

See Also