Adds an attribute to the specified node.
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static XmlNode AddAttribute( this XmlNode node, string attributeName, string attributeValue ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function AddAttribute ( node As XmlNode, attributeName As String, attributeValue As String ) As XmlNode |
Parameters
- node
- Type: System.Xml..::..XmlNode
The node to add the attribute to.
- attributeName
- Type: System..::..String
Name of the attribute.
- attributeValue
- Type: System..::..String
The attribute value.