This documentation is archived and is not being maintained.

XmlAttributeCollection Class

Represents a collection of attributes that can be accessed by name or index.

For a list of all members of this type, see XmlAttributeCollection Members.


[Visual Basic]
Public Class XmlAttributeCollection
   Inherits XmlNamedNodeMap
   Implements ICollection
public class XmlAttributeCollection : XmlNamedNodeMap, ICollection
public __gc class XmlAttributeCollection : public XmlNamedNodeMap,
public class XmlAttributeCollection extends XmlNamedNodeMap
   implements ICollection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


XmlAttributeCollection extends the XmlNamedNodeMap class adding strongly typed helper methods. You can use this class to add, remove or modify attributes in the collection. XmlAttributeCollection is returned by the XmlElement.Attributes property.


Namespace: System.Xml

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Xml (in System.Xml.dll)

See Also

XmlAttributeCollection Members | System.Xml Namespace | Accessing Attributes in the DOM | Unordered Node Retrieval by Name or Index | XML Document Object Model (DOM) | XmlAttribute | XmlElement