XmlAttributeCollection Class
Represents a collection of attributes that can be accessed by name or index.
Assembly: System.Xml (in System.Xml.dll)
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of nodes in the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.) |
![]() | ItemOf[Int32] | Gets the attribute with the specified index. |
![]() | ItemOf[String^] | Gets the attribute with the specified name. |
![]() | ItemOf[String^, String^] | Gets the attribute with the specified local name and namespace Uniform Resource Identifier (URI). |
| Name | Description | |
|---|---|---|
![]() | Append(XmlAttribute^) | Inserts the specified attribute as the last node in the collection. |
![]() | CopyTo(array<XmlAttribute^>^, Int32) | Copies all the XmlAttribute objects from this collection into the given array. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetEnumerator() | Provides support for the "foreach" style iteration over the collection of nodes in the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetNamedItem(String^) | Retrieves an XmlNode specified by name.(Inherited from XmlNamedNodeMap.) |
![]() | GetNamedItem(String^, String^) | Retrieves a node with the matching LocalName and NamespaceURI.(Inherited from XmlNamedNodeMap.) |
![]() | GetType() | |
![]() | InsertAfter(XmlAttribute^, XmlAttribute^) | Inserts the specified attribute immediately after the specified reference attribute. |
![]() | InsertBefore(XmlAttribute^, XmlAttribute^) | Inserts the specified attribute immediately before the specified reference attribute. |
![]() | Item(Int32) | Retrieves the node at the specified index in the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.) |
![]() | Prepend(XmlAttribute^) | Inserts the specified attribute as the first node in the collection. |
![]() | Remove(XmlAttribute^) | Removes the specified attribute from the collection. |
![]() | RemoveAll() | Removes all attributes from the collection. |
![]() | RemoveAt(Int32) | Removes the attribute corresponding to the specified index from the collection. |
![]() | RemoveNamedItem(String^) | Removes the node from the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.) |
![]() | RemoveNamedItem(String^, String^) | Removes a node with the matching LocalName and NamespaceURI.(Inherited from XmlNamedNodeMap.) |
![]() | SetNamedItem(XmlNode^) | Adds a XmlNode using its Name property (Overrides XmlNamedNodeMap::SetNamedItem(XmlNode^).) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo(Array^, Int32) | For a description of this member, see XmlAttributeCollection::CopyTo. |
![]() ![]() | ICollection::Count | For a description of this member, see XmlAttributeCollection::ICollection::Count. |
![]() ![]() | ICollection::IsSynchronized | For a description of this member, see XmlAttributeCollection::ICollection::IsSynchronized. |
![]() ![]() | ICollection::SyncRoot | For a description of this member, see XmlAttributeCollection::ICollection::SyncRoot. |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast<TResult>() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType<TResult>() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
XmlAttributeCollection extends the XmlNamedNodeMap class by 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.
Available since 10
.NET Framework
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




