System.Xml.XmlAttributeCollection.Prepend Method

Inserts the specified attribute as the first node in the collection.

Syntax

public XmlAttribute Prepend (XmlAttribute node)

Parameters

node
The System.Xml.XmlAttribute to insert.

Returns

The XmlAttribute added to the collection.

Remarks

If an attribute with the same name is already present in the collection, the original attribute is removed from the collection and node is added to the beginning of the collection.

This method is a Microsoft extension to the Document Object Model (DOM).

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