Name
XmlAttributeCollection
Synopsis
This class defines a collection of
attributes for an
XmlElement node. An
XmlAttributeCollection is returned by the
XmlElement.Attributes property. The collection
contains XmlAttribute objects that can be
specified by either an object name or a zero-based index. Attribute
nodes can be added and removed from the collection with methods, such
as InsertBefore( ), InsertAfter( ), Prepend( ), and RemoveAt( ).
public class XmlAttributeCollection, XmlNamedNodeMap : ICollection { // Public Instance Properties public virtual XmlAttribute this[stringlocalName, stringnamespaceURI]{get; } public virtual XmlAttribute this[stringname]{get; } public virtual XmlAttribute this[inti]{get; } // Public Instance Methods public virtual XmlAttribute Append(XmlAttributenode); public void CopyTo(XmlAttribute[ ]array, intindex); public virtual XmlAttribute InsertAfter(XmlAttributenewNode, XmlAttributerefNode); public virtual XmlAttribute InsertBefore(XmlAttributenewNode, XmlAttributerefNode); public virtual XmlAttribute Prepend(XmlAttributenode); public virtual XmlAttribute Remove(XmlAttributenode); public virtual void RemoveAll( ); public virtual XmlAttribute RemoveAt(inti); public override XmlNode SetNamedItem(XmlNodenode); // overrides XmlNamedNodeMap }
Hierarchy
System.Object
→
XmlNamedNodeMap(System.Collections.IEnumerable)
→
XmlAttributeCollection(System.Collections.ICollection)
Returned By
XmlNode.Attributes
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access