XmlNodeList 類別

定義

代表已排序的節點集合。

public ref class XmlNodeList abstract : IDisposable, System::Collections::IEnumerable
public ref class XmlNodeList abstract : System::Collections::IEnumerable
public abstract class XmlNodeList : IDisposable, System.Collections.IEnumerable
public abstract class XmlNodeList : System.Collections.IEnumerable
type XmlNodeList = class
    interface IEnumerable
    interface IDisposable
type XmlNodeList = class
    interface IEnumerable
Public MustInherit Class XmlNodeList
Implements IDisposable, IEnumerable
Public MustInherit Class XmlNodeList
Implements IEnumerable
繼承
XmlNodeList
實作

備註

對建立集合之節點物件的子系 XmlNodeList 所做的變更,會立即反映在屬性和方法所 XmlNodeList 傳回的節點中。 XmlNodeList 支援反復專案和索引存取。

XmlNodeList 由下列屬性和方法傳回。

  • XmlNode.ChildNodes - 傳回 , XmlNodeList 其中包含節點的所有子系。

  • XmlNode.SelectNodes - 傳回 , XmlNodeList 其中包含符合 XPath 查詢的節點集合。

  • GetElementsByTagName - 傳回 , XmlNodeList 其中包含符合指定名稱的所有子代專案清單。 這個方法可在 和 XmlElement 類別中使用 XmlDocument

建構函式

XmlNodeList()

初始化 XmlNodeList 類別的新執行個體。

屬性

Count

取得 XmlNodeList 中的節點數目。

ItemOf[Int32]

取得指定之索引位置的節點。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

取得逐一查看節點集合的列舉值。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Item(Int32)

擷取指定索引的節點。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
PrivateDisposeNodeList()

私下處置節點清單中的資源。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IDisposable.Dispose()

釋放 XmlNodeList 類別所使用的所有資源。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於

另請參閱