XmlNamedNodeMap XmlNamedNodeMap XmlNamedNodeMap XmlNamedNodeMap Class

定义

表示可以通过名称或索引访问的节点的集合。Represents a collection of nodes that can be accessed by name or index.

public ref class XmlNamedNodeMap : System::Collections::IEnumerable
public class XmlNamedNodeMap : System.Collections.IEnumerable
type XmlNamedNodeMap = class
    interface IEnumerable
Public Class XmlNamedNodeMap
Implements IEnumerable
继承
XmlNamedNodeMapXmlNamedNodeMapXmlNamedNodeMapXmlNamedNodeMap
派生
实现

注解

XmlNamedNodeMap以下三个属性返回。XmlNamedNodeMap is returned by the following three properties.

属性

Count Count Count Count

获取 XmlNamedNodeMap 中的节点数。Gets the number of nodes in the XmlNamedNodeMap.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

提供对 XmlNamedNodeMap 中节点集合上“foreach”样式迭代的支持。Provides support for the "foreach" style iteration over the collection of nodes in the XmlNamedNodeMap.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetNamedItem(String) GetNamedItem(String) GetNamedItem(String) GetNamedItem(String)

检索通过名称指定的 XmlNodeRetrieves an XmlNode specified by name.

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

检索具有匹配的 LocalNameNamespaceURI 的节点。Retrieves a node with the matching LocalName and NamespaceURI.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
Item(Int32) Item(Int32) Item(Int32) Item(Int32)

检索位于 XmlNamedNodeMap 中指定索引处的节点。Retrieves the node at the specified index in the XmlNamedNodeMap.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveNamedItem(String) RemoveNamedItem(String) RemoveNamedItem(String) RemoveNamedItem(String)

XmlNamedNodeMap 中移除节点。Removes the node from the XmlNamedNodeMap.

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

移除具有匹配的 LocalNameNamespaceURI 的节点。Removes a node with the matching LocalName and NamespaceURI.

SetNamedItem(XmlNode) SetNamedItem(XmlNode) SetNamedItem(XmlNode) SetNamedItem(XmlNode)

使用其 XmlNode 属性添加 NameAdds an XmlNode using its Name property.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅