<PackageReference Include="System.Xml.XmlDocument" Version="4.0.1-beta-23409" />

XmlAttributeCollection

Represents a collection of attributes that can be accessed by name or index.
public XmlAttribute this[int i] { get; }

Gets the attribute with the specified index.

public XmlAttribute this[string name] { get; }

Gets the attribute with the specified name.

public XmlAttribute this[string localName, string namespaceURI] { get; }

Gets the attribute with the specified local name and namespace Uniform Resource Identifier (URI).

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

public void CopyTo(XmlAttribute[] array, int index)

Copies all the XmlAttribute objects from this collection into the given array.

Inserts the specified attribute immediately after the specified reference attribute.

Inserts the specified attribute immediately before the specified reference attribute.

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

Removes the specified attribute from the collection.

public void RemoveAll()

Removes all attributes from the collection.

public XmlAttribute RemoveAt(int i)

Removes the attribute corresponding to the specified index from the collection.