NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlNamedNodeMap.SetNamedItem

Adds a XmlNode using its Name property

[Visual Basic]
Overridable Public Function SetNamedItem( _
   ByVal node As XmlNode _
) As XmlNode
[C#]
public virtual XmlNode SetNamedItem(
   XmlNode node
);
[C++]
public: virtual XmlNode* SetNamedItem(
   XmlNode* node
);
[JScript]
public function SetNamedItem(
   node : XmlNode
) : XmlNode;

Parameters

node
A XmlNode to store in this XmlNamedNodeMap. The node will later be accessible using the value of the Name property of the node. If a node with that name is already present in the map, it is replaced by the new one.

Return Value

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

See Also

XmlNamedNodeMap Class | XmlNamedNodeMap Members | System.NewXml Namespace