August 2003
Intermediate to advanced
928 pages
32h 1m
English
XmlAttributeCollection
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 }
System.Object
→
XmlNamedNodeMap(System.Collections.IEnumerable)
→
XmlAttributeCollection(System.Collections.ICollection)
XmlNode.Attributes