This topic has not yet been rated - Rate this topic

XmlAttributeCollection Class

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

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

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)
public sealed class XmlAttributeCollection : XmlNamedNodeMap, 
	ICollection, IEnumerable

The XmlAttributeCollection type exposes the following members.

  Name Description
Public property Supported by the XNA Framework Count Gets the number of nodes in the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Public property Supported by the XNA Framework ItemOf[Int32] Gets the attribute with the specified index.
Public property Supported by the XNA Framework ItemOf[String] Gets the attribute with the specified name.
Public property Supported by the XNA Framework ItemOf[String, String] Gets the attribute with the specified local name and namespace Uniform Resource Identifier (URI).
Top
  Name Description
Public method Supported by the XNA Framework Append Inserts the specified attribute as the last node in the collection.
Public method Supported by the XNA Framework CopyTo Copies all the XmlAttribute objects from this collection into the given array.
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the XNA Framework GetEnumerator Provides support for the "foreach" style iteration over the collection of nodes in the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Public method Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the XNA Framework GetNamedItem(String) Retrieves an XmlNode specified by name. (Inherited from XmlNamedNodeMap.)
Public method Supported by the XNA Framework GetNamedItem(String, String) Retrieves a node with the matching LocalName and NamespaceURI. (Inherited from XmlNamedNodeMap.)
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the XNA Framework InsertAfter Inserts the specified attribute immediately after the specified reference attribute.
Public method Supported by the XNA Framework InsertBefore Inserts the specified attribute immediately before the specified reference attribute.
Public method Supported by the XNA Framework Item Retrieves the node at the specified index in the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the XNA Framework Prepend Inserts the specified attribute as the first node in the collection.
Public method Supported by the XNA Framework Remove Removes the specified attribute from the collection.
Public method Supported by the XNA Framework RemoveAll Removes all attributes from the collection.
Public method Supported by the XNA Framework RemoveAt Removes the attribute corresponding to the specified index from the collection.
Public method Supported by the XNA Framework RemoveNamedItem(String) Removes the node from the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Public method Supported by the XNA Framework RemoveNamedItem(String, String) Removes a node with the matching LocalName and NamespaceURI. (Inherited from XmlNamedNodeMap.)
Public method Supported by the XNA Framework SetNamedItem Adds a XmlNode using its Name property (Overrides XmlNamedNodeMap.SetNamedItem(XmlNode).)
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Supported by the XNA Framework Cast<TResult> Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Supported by the XNA Framework OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  Name Description
Explicit interface implemetation Private method Supported by the XNA Framework ICollection.CopyTo For a description of this member, see XmlAttributeCollection.CopyTo.
Explicit interface implemetation Private property Supported by the XNA Framework ICollection.Count For a description of this member, see ICollectionCount().
Explicit interface implemetation Private property Supported by the XNA Framework ICollection.IsSynchronized For a description of this member, see ICollectionIsSynchronized().
Explicit interface implemetation Private property Supported by the XNA Framework ICollection.SyncRoot For a description of this member, see ICollectionSyncRoot().
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
XmlAttributeCollection Class
Represents a collection of attributes that can be accessed by name or index.