XmlQueryNodeSequence 類別

定義

XML 節點的序列,能夠動態擴充並允許隨機存取項目。A sequence of XML nodes that dynamically expands and allows random access to items.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public ref class XmlQueryNodeSequence sealed : System::Xml::Xsl::Runtime::XmlQuerySequence<System::Xml::XPath::XPathNavigator ^>, System::Collections::Generic::ICollection<System::Xml::XPath::XPathItem ^>, System::Collections::Generic::IEnumerable<System::Xml::XPath::XPathItem ^>, System::Collections::Generic::IList<System::Xml::XPath::XPathItem ^>
public sealed class XmlQueryNodeSequence : System.Xml.Xsl.Runtime.XmlQuerySequence<System.Xml.XPath.XPathNavigator>, System.Collections.Generic.ICollection<System.Xml.XPath.XPathItem>, System.Collections.Generic.IEnumerable<System.Xml.XPath.XPathItem>, System.Collections.Generic.IList<System.Xml.XPath.XPathItem>
type XmlQueryNodeSequence = class
    inherit XmlQuerySequence<XPathNavigator>
    interface IList<XPathItem>
    interface ICollection<XPathItem>
    interface seq<XPathItem>
    interface IEnumerable
Public NotInheritable Class XmlQueryNodeSequence
Inherits XmlQuerySequence(Of XPathNavigator)
Implements ICollection(Of XPathItem), IEnumerable(Of XPathItem), IList(Of XPathItem)
繼承
XmlQueryNodeSequence
實作

建構函式

XmlQueryNodeSequence()

初始化 XmlQueryNodeSequence 類別的新執行個體。Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(IList<XPathNavigator>)

初始化 XmlQueryNodeSequence 類別的新執行個體。Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(Int32)

初始化 XmlQueryNodeSequence 類別的新執行個體。Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(XPathNavigator)

初始化 XmlQueryNodeSequence 類別的新執行個體。Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(XPathNavigator[], Int32)

初始化 XmlQueryNodeSequence 類別的新執行個體。Initializes a new instance of the XmlQueryNodeSequence class.

欄位

Empty

取得已經過適當初始化的空 XmlQueryNodeSequenceGets an empty XmlQueryNodeSequence that is properly initialized.

屬性

Count

傳回序列中的項目數目。Returns the number of items in the sequence.

(繼承來源 XmlQuerySequence<T>)
IsDocOrderDistinct

如果這個屬性為 true,此快取中的節點會按照文件的順序而且沒有重複。If this property is true, the nodes in this cache are in document order with no duplicates.

Item[Int32]

傳回在指定索引處的項目。Returns the item at the specified index.

(繼承來源 XmlQuerySequence<T>)

方法

Add(T)

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
AddClone(XPathNavigator)

複製巡覽器並接著將節點新增到序列中。Clone the navigator and then adds a node to the sequence.

Clear()

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
Contains(T)

如果指定的值位於序列中,則傳回 trueReturns true if the specified value is in the sequence.

(繼承來源 XmlQuerySequence<T>)
CopyTo(T[], Int32)

將這個序列的內容複製到指定的陣列,從陣列中指定的索引位置開始。Copies the contents of this sequence to the specified array, starting at the specified index in the array.

(繼承來源 XmlQuerySequence<T>)
CreateOrReuse(XmlQueryNodeSequence)

如果有指定的 XmlQueryNodeSequence 可以使用,則清除並重複使用這個序列。Clears and reuses the specified XmlQueryNodeSequence if it is available. 如果 seq 參數為 null,則會建立新的 XmlQueryNodeSequenceIf the seq parameter is null, creates a new XmlQueryNodeSequence.

CreateOrReuse(XmlQueryNodeSequence, XPathNavigator)

如果有指定的 XmlQueryNodeSequence 可以使用,則清除並重複使用這個序列。Clears and reuses the specified XmlQueryNodeSequence if it is available. 如果 seq 參數為 null,則會建立新的 XmlQueryNodeSequence 並且將 navigator 新增到序列。If the seq parameter is null, creates a new XmlQueryNodeSequence and adds navigator to the sequence.

DocOrderDistinct(IComparer<XPathNavigator>)

傳回包含這個快取中所有不同節點的序列,依據文件順序來排序。Returns a sequence that contains all the distinct nodes in this cache, sorted in document order.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetEnumerator()

傳回 IEnumerator<T>Returns IEnumerator<T>.

(繼承來源 XmlQuerySequence<T>)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IndexOf(T)

傳回指定之值在序列中的索引。Returns the index of the specified value in the sequence.

(繼承來源 XmlQuerySequence<T>)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnItemsChanged()

於快取中新增或移除一或多個項目時呼叫。Called when one or more items in the cache have been added or removed. 這個方法也可以從 SortByKeys(Array) 方法呼叫。This method can also be called from the SortByKeys(Array) method.

(繼承來源 XmlQuerySequence<T>)
SortByKeys(Array)

使用包含於指定陣列中的索引鍵,排序快取中的項目。Sort the items in the cache using the keys contained in the specified array.

(繼承來源 XmlQuerySequence<T>)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

將這個序列的內容複製到指定的陣列,從目標陣列中指定的索引位置開始。Copies the contents of this sequence to the specified array, starting at the specified index in the target array.

(繼承來源 XmlQuerySequence<T>)
ICollection.IsSynchronized

傳回 falseReturns false. XmlQuerySequence<T> 並不具備執行緒安全。The XmlQuerySequence<T> is not thread-safe.

(繼承來源 XmlQuerySequence<T>)
ICollection.SyncRoot

傳回 XmlQuerySequence<T> 類別的這個執行個體。Returns this instance of the XmlQuerySequence<T> class. 這個執行個體可以用於同步處理存取。This instance can be used to synchronize access.

(繼承來源 XmlQuerySequence<T>)
ICollection<T>.Add(T)

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
ICollection<T>.Clear()

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
ICollection<T>.IsReadOnly

如果 XmlQuerySequence<T> 是唯讀的,這個屬性會傳回 trueIf the XmlQuerySequence<T> is read-only, this property returns true.

(繼承來源 XmlQuerySequence<T>)
ICollection<T>.Remove(T)

從集合中移除指定的項目。Removes the specified item from the collection.

(繼承來源 XmlQuerySequence<T>)
ICollection<XPathItem>.Add(XPathItem)

擲回 NotSupportedException 例外狀況。Throws the NotSupportedException exception.

ICollection<XPathItem>.Clear()

擲回 NotSupportedException 例外狀況。Throws the NotSupportedException exception.

ICollection<XPathItem>.Contains(XPathItem)

如果指定的值位於序列中,則傳回 true。Returns true if the specified value is in the sequence.

ICollection<XPathItem>.CopyTo(XPathItem[], Int32)

將這個序列的內容複製到指定的陣列,從目標陣列中指定的索引位置開始。Copies the contents of this sequence to the specified array, starting at the specified index in the target array.

ICollection<XPathItem>.get_Count()
ICollection<XPathItem>.IsReadOnly

指定無法透過 ICollection<T> 介面新增、移除或修改的項目。Specifies that items cannot be added, removed, or modified through the ICollection<T> interface.

ICollection<XPathItem>.Remove(XPathItem)

擲回 NotSupportedException 例外狀況。Throws the NotSupportedException exception.

IEnumerable.GetEnumerator()

傳回列舉值,可用來逐一查看查詢序列集合。Returns an enumerator that can be used to iterate through the query sequence collection.

(繼承來源 XmlQuerySequence<T>)
IEnumerable<XPathItem>.GetEnumerator()

傳回 XPathItem 實作的 IEnumerator<T>Returns the IEnumerator<T> of XPathItem implementation.

IList.Add(Object)

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
IList.Clear()

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
IList.Contains(Object)

如果指定的值位於序列中,則傳回 trueReturns true if the specified value is in the sequence.

(繼承來源 XmlQuerySequence<T>)
IList.IndexOf(Object)

傳回指定之值在序列中的索引。Returns the index of the specified value in the sequence.

(繼承來源 XmlQuerySequence<T>)
IList.Insert(Int32, Object)

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
IList.IsFixedSize

傳回 true 以指出項目無法新增、移除或修改。Returns true to indicate items cannot be added, removed, or modified.

(繼承來源 XmlQuerySequence<T>)
IList.IsReadOnly

取得值,指出 XmlQuerySequence<T> 是否唯讀。Gets a value indicating whether the XmlQuerySequence<T> is read-only. 一定是 trueAlways true.

(繼承來源 XmlQuerySequence<T>)
IList.Item[Int32]

傳回在指定索引處的項目。Returns the item at the specified index.

(繼承來源 XmlQuerySequence<T>)
IList.Remove(Object)

未實作。Not implemented. 擲回 NotSupportedException 例外狀況。Throws the NotSupportedException exception.

(繼承來源 XmlQuerySequence<T>)
IList.RemoveAt(Int32)

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
IList<T>.Insert(Int32, T)

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
IList<T>.RemoveAt(Int32)

在所有情況下都會擲回 NotSupportedException 例外狀況。Throws a NotSupportedException exception in all cases.

(繼承來源 XmlQuerySequence<T>)
IList<XPathItem>.IndexOf(XPathItem)

傳回指定之值在序列中的索引。Returns the index of the specified value in the sequence.

IList<XPathItem>.Insert(Int32, XPathItem)

擲回 NotSupportedException 例外狀況。Throws the NotSupportedException exception.

IList<XPathItem>.Item[Int32]

傳回在指定索引處的項目。Returns the item at the specified index.

IList<XPathItem>.RemoveAt(Int32)

擲回 NotSupportedException 例外狀況。Throws the NotSupportedException exception.

擴充方法

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 IEnumerable<T> 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

傳回包含來源集合中每個節點祖系的項目集合。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

傳回包含來源集合中每個節點祖系的已篩選項目集合。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目之子代節點的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

傳回包含來源集合中每個項目和文件之子代項目的項目集合。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

傳回已篩選的項目集合,其中包含來源集合中每個項目和文件的子代項目。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

傳回來源集合中每個項目和文件的子項目集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

傳回來源集合中每個項目和文件的已篩選子項目集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

傳回包含來源集合中所有節點的節點集合,依據文件順序來排序。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目的子節點集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

在來源集合中,從每一個節點的父節點移除這些節點。Removes every node in the source collection from its parent node.

適用於