System.Xml.XmlAttributeCollection.SetNamedItem Method

Adds a System.Xml.XmlNode using its XmlNode.Name property

Syntax

public override XmlNode SetNamedItem (XmlNode node)

Parameters

node
An attribute node to store in this collection. The node will later be accessible using the name of the node. If a node with that name is already present in the collection, it is replaced by the new one; otherwise, the node is appended to the end of the collection.

Returns

If the node replaces an existing node with the same name, the old node is returned; otherwise, the added node is returned.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0