XmlNamedNodeMap XmlNamedNodeMap XmlNamedNodeMap XmlNamedNodeMap XmlNamedNodeMap Class

Definition

Encapsulates iteration through the collection of attribute nodes.

public : sealed class XmlNamedNodeMap : IXmlNamedNodeMap, IIterable<IXmlNode>, IVectorView<IXmlNode>
struct winrt::Windows::Data::Xml::Dom::XmlNamedNodeMap : IXmlNamedNodeMap, IIterable<IXmlNode>, IVectorView<IXmlNode>
public sealed class XmlNamedNodeMap : IXmlNamedNodeMap, IEnumerable<IXmlNode>, IReadOnlyList<IXmlNode>
Public NotInheritable Class XmlNamedNodeMap Implements IXmlNamedNodeMap, IEnumerable<IXmlNode>, IReadOnlyList<IXmlNode>
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Collection member lists

For JavaScript, XmlNamedNodeMap has the members shown in the member lists. In addition, XmlNamedNodeMap supports members of Array.prototype and using an index to access items.

Enumerating the collection in C# or Microsoft Visual Basic

XmlNamedNodeMap is enumerable, so you can use language-specific syntax such as foreach in C# to enumerate the items in the collection. The compiler does the type-casting for you and you won't need to cast to IEnumerable<IXmlNode> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable with an IXmlNode constraint.

Properties

Item[Int32] Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets the element at the specified index in the read-only list.

Length Length Length Length Length

Gets the length of the list of nodes.

Size Size Size Size Size

Gets the number of elements in the vector view.

Methods

First() First() First() First() First()

Returns an iterator that iterates over the items in the collection.

GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32) GetAt(UInt32)

Returns the item at the specified index in the vector view.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

GetMany(UInt32, IXmlNode[]) GetMany(UInt32, IXmlNode[]) GetMany(UInt32, IXmlNode[]) GetMany(UInt32, IXmlNode[]) GetMany(UInt32, IXmlNode[])

Returns the items that start at the specified index of the vector view.

GetNamedItem(String) GetNamedItem(String) GetNamedItem(String) GetNamedItem(String) GetNamedItem(String)

Retrieves the attribute with the specified name.

GetNamedItemNS(Object, String) GetNamedItemNS(Object, String) GetNamedItemNS(Object, String) GetNamedItemNS(Object, String) GetNamedItemNS(Object, String)

Retrieves the attribute with the specified namespace and name.

IndexOf(IXmlNode, UInt32) IndexOf(IXmlNode, UInt32) IndexOf(IXmlNode, UInt32) IndexOf(IXmlNode, UInt32) IndexOf(IXmlNode, UInt32)

Returns the index of a specified item in the vector view.

Item(UInt32) Item(UInt32) Item(UInt32) Item(UInt32) Item(UInt32)

Allows random access to individual nodes within the collection.

RemoveNamedItem(String) RemoveNamedItem(String) RemoveNamedItem(String) RemoveNamedItem(String) RemoveNamedItem(String)

Removes the specified item.

RemoveNamedItemNS(Object, String) RemoveNamedItemNS(Object, String) RemoveNamedItemNS(Object, String) RemoveNamedItemNS(Object, String) RemoveNamedItemNS(Object, String)

Removes an item that is specified by a namespace and local name.

SetNamedItem(IXmlNode) SetNamedItem(IXmlNode) SetNamedItem(IXmlNode) SetNamedItem(IXmlNode) SetNamedItem(IXmlNode)

Adds the specified node to the collection.

SetNamedItemNS(IXmlNode) SetNamedItemNS(IXmlNode) SetNamedItemNS(IXmlNode) SetNamedItemNS(IXmlNode) SetNamedItemNS(IXmlNode)

Adds the specified node to the collection in the specified namespace. If you are not using any namespaces, then use the SetNamedItem method.