System.Xml.XmlElement.RemoveAttributeAt Method

Removes the attribute node with the specified index from the element. (If the removed attribute has a default value, it is immediately replaced).

Syntax

public virtual XmlNode RemoveAttributeAt (int i)

Parameters

i
The index of the node to remove. The first node has index 0.

Returns

The attribute node removed or null if there is no node at the given index.

Remarks

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