XmlAttributeCollection Class

 

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

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

System.Object
  System.Xml.XmlNamedNodeMap
    System.Xml.XmlAttributeCollection

public sealed class XmlAttributeCollection : XmlNamedNodeMap, 
	ICollection, IEnumerable

NameDescription
System_CAPS_pubpropertyCount

Gets the number of nodes in the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.)

System_CAPS_pubpropertyItemOf[Int32]

Gets the attribute with the specified index.

System_CAPS_pubpropertyItemOf[String]

Gets the attribute with the specified name.

System_CAPS_pubpropertyItemOf[String, String]

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

NameDescription
System_CAPS_pubmethodAppend(XmlAttribute)

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

System_CAPS_pubmethodCopyTo(XmlAttribute[], Int32)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Provides support for the "foreach" style iteration over the collection of nodes in the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetNamedItem(String)

Retrieves an XmlNode specified by name.(Inherited from XmlNamedNodeMap.)

System_CAPS_pubmethodGetNamedItem(String, String)

Retrieves a node with the matching LocalName and NamespaceURI.(Inherited from XmlNamedNodeMap.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInsertAfter(XmlAttribute, XmlAttribute)

Inserts the specified attribute immediately after the specified reference attribute.

System_CAPS_pubmethodInsertBefore(XmlAttribute, XmlAttribute)

Inserts the specified attribute immediately before the specified reference attribute.

System_CAPS_pubmethodItem(Int32)

Retrieves the node at the specified index in the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.)

System_CAPS_pubmethodPrepend(XmlAttribute)

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

System_CAPS_pubmethodRemove(XmlAttribute)

Removes the specified attribute from the collection.

System_CAPS_pubmethodRemoveAll()

Removes all attributes from the collection.

System_CAPS_pubmethodRemoveAt(Int32)

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

System_CAPS_pubmethodRemoveNamedItem(String)

Removes the node from the XmlNamedNodeMap.(Inherited from XmlNamedNodeMap.)

System_CAPS_pubmethodRemoveNamedItem(String, String)

Removes a node with the matching LocalName and NamespaceURI.(Inherited from XmlNamedNodeMap.)

System_CAPS_pubmethodSetNamedItem(XmlNode)

Adds a XmlNode using its Name property (Overrides XmlNamedNodeMap.SetNamedItem(XmlNode).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<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.

Universal Windows Platform
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.

Return to top
Show: