Export (0) Print
Expand All

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)

[<Sealed>]
type XmlAttributeCollection =  
    class 
        inherit XmlNamedNodeMap 
        interface ICollection 
        interface IEnumerable 
    end

The XmlAttributeCollection type exposes the following members.

  NameDescription
Public propertySupported by the XNA FrameworkCountGets the number of nodes in the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Public propertySupported by the XNA FrameworkItemOf(Int32)Gets the attribute with the specified index.
Public propertySupported by the XNA FrameworkItemOf(String)Gets the attribute with the specified name.
Public propertySupported by the XNA FrameworkItemOf(String, String)Gets the attribute with the specified local name and namespace Uniform Resource Identifier (URI).
Top

  NameDescription
Public methodSupported by the XNA FrameworkAppendInserts the specified attribute as the last node in the collection.
Public methodSupported by the XNA FrameworkCopyToCopies all the XmlAttribute objects from this collection into the given array.
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetEnumeratorProvides support for the "foreach" style iteration over the collection of nodes in the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetNamedItem(String)Retrieves an XmlNode specified by name. (Inherited from XmlNamedNodeMap.)
Public methodSupported by the XNA FrameworkGetNamedItem(String, String)Retrieves a node with the matching LocalName and NamespaceURI. (Inherited from XmlNamedNodeMap.)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the XNA FrameworkInsertAfterInserts the specified attribute immediately after the specified reference attribute.
Public methodSupported by the XNA FrameworkInsertBeforeInserts the specified attribute immediately before the specified reference attribute.
Public methodSupported by the XNA FrameworkItemRetrieves the node at the specified index in the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Public methodSupported by the XNA FrameworkPrependInserts the specified attribute as the first node in the collection.
Public methodSupported by the XNA FrameworkRemoveRemoves the specified attribute from the collection.
Public methodSupported by the XNA FrameworkRemoveAllRemoves all attributes from the collection.
Public methodSupported by the XNA FrameworkRemoveAtRemoves the attribute corresponding to the specified index from the collection.
Public methodSupported by the XNA FrameworkRemoveNamedItem(String)Removes the node from the XmlNamedNodeMap. (Inherited from XmlNamedNodeMap.)
Public methodSupported by the XNA FrameworkRemoveNamedItem(String, String)Removes a node with the matching LocalName and NamespaceURI. (Inherited from XmlNamedNodeMap.)
Public methodSupported by the XNA FrameworkSetNamedItemAdds a XmlNode using its Name property (Overrides XmlNamedNodeMap.SetNamedItem(XmlNode).)
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallel()Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsParallel()Overloaded. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryable()Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodAsQueryable()Overloaded. (Defined by Queryable.)
Public Extension MethodSupported by the XNA FrameworkCast(TResult)()Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by the XNA FrameworkCast(TResult)()Overloaded. (Defined by Enumerable.)
Public Extension MethodSupported by the XNA FrameworkOfType(TResult)()Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension MethodSupported by the XNA FrameworkOfType(TResult)()Overloaded. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICollection.CopyToFor a description of this member, see XmlAttributeCollection.CopyTo.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkICollection.CountFor a description of this member, see ICollection.Count.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkICollection.IsSynchronizedFor a description of this member, see ICollection.IsSynchronized.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkICollection.SyncRootFor a description of this member, see ICollection.SyncRoot.
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.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft