EnumerableQuery<T> EnumerableQuery<T> EnumerableQuery<T> EnumerableQuery<T> Class

定義

表示做為 IEnumerable<T> 資料來源的 IQueryable<T> 集合。Represents an IEnumerable<T> collection as an IQueryable<T> data source.

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

generic <typename T>
public ref class EnumerableQuery : System::Linq::EnumerableQuery, System::Collections::Generic::IEnumerable<T>, System::Linq::IOrderedQueryable<T>, System::Linq::IQueryable<T>, System::Linq::IQueryProvider
public class EnumerableQuery<T> : System.Linq.EnumerableQuery, System.Collections.Generic.IEnumerable<T>, System.Linq.IOrderedQueryable<T>, System.Linq.IQueryable<T>, System.Linq.IQueryProvider
type EnumerableQuery<'T> = class
    inherit EnumerableQuery
    interface IOrderedQueryable<'T>
    interface IQueryable
    interface IQueryProvider
    interface seq<'T>
    interface IEnumerable
    interface IQueryable<'T>
    interface IOrderedQueryable
Public Class EnumerableQuery(Of T)
Inherits EnumerableQuery
Implements IEnumerable(Of T), IOrderedQueryable(Of T), IQueryable(Of T), IQueryProvider

類型參數

T

集合中的資料型別。The type of the data in the collection.

繼承
EnumerableQuery<T>EnumerableQuery<T>EnumerableQuery<T>EnumerableQuery<T>
實作

建構函式

EnumerableQuery<T>(Expression) EnumerableQuery<T>(Expression) EnumerableQuery<T>(Expression) EnumerableQuery<T>(Expression)

初始化 EnumerableQuery<T> 類別的新執行個體,並使其與運算式樹狀架構產生關聯。Initializes a new instance of the EnumerableQuery<T> class and associates the instance with an expression tree.

EnumerableQuery<T>(IEnumerable<T>) EnumerableQuery<T>(IEnumerable<T>) EnumerableQuery<T>(IEnumerable<T>) EnumerableQuery<T>(IEnumerable<T>)

初始化 EnumerableQuery<T> 類別的新執行個體,並使其與 IEnumerable<T> 集合產生關聯。Initializes a new instance of the EnumerableQuery<T> class and associates it with an IEnumerable<T> collection.

方法

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

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回可列舉集合的文字表示,如果為 null,則傳回與該執行個體關聯的運算式樹狀架構的文字表示。Returns a textual representation of the enumerable collection or, if it is null, of the expression tree that is associated with this instance.

明確介面實作

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

傳回可以逐一查看關聯之 IEnumerable<T> 集合的列舉值,或者如果為 null,則逐一查看重新寫入運算式樹狀架構所產生的集合,做為 IEnumerable<T> 資料來源上的查詢並且執行。Returns an enumerator that can iterate through the associated IEnumerable<T> collection, or, if it is null, through the collection that results from rewriting the associated expression tree as a query on an IEnumerable<T> data source and executing it.

IEnumerable<T>.GetEnumerator() IEnumerable<T>.GetEnumerator() IEnumerable<T>.GetEnumerator() IEnumerable<T>.GetEnumerator()

傳回可以逐一查看關聯之 IEnumerable<T> 集合的列舉值,或者如果為 null,則逐一查看重新寫入運算式樹狀架構所產生的集合,做為 IEnumerable<T> 資料來源上的查詢並且執行。Returns an enumerator that can iterate through the associated IEnumerable<T> collection, or, if it is null, through the collection that results from rewriting the associated expression tree as a query on an IEnumerable<T> data source and executing it.

IQueryable.ElementType IQueryable.ElementType IQueryable.ElementType IQueryable.ElementType

取得此執行個體所代表之集合中的資料型別。Gets the type of the data in the collection that this instance represents.

IQueryable.Expression IQueryable.Expression IQueryable.Expression IQueryable.Expression

取得與此執行個體關聯的或代表此執行個體的運算式樹狀架構。Gets the expression tree that is associated with or that represents this instance.

IQueryable.Provider IQueryable.Provider IQueryable.Provider IQueryable.Provider

取得與這個執行個體關聯的查詢提供者。Gets the query provider that is associated with this instance.

IQueryProvider.CreateQuery(Expression) IQueryProvider.CreateQuery(Expression) IQueryProvider.CreateQuery(Expression) IQueryProvider.CreateQuery(Expression)

建構新的 EnumerableQuery<T> 物件,並將其與指定的運算式樹狀架構 (表示資料的 IQueryable 集合) 建立關聯。Constructs a new EnumerableQuery<T> object and associates it with a specified expression tree that represents an IQueryable collection of data.

IQueryProvider.CreateQuery<S>(Expression) IQueryProvider.CreateQuery<S>(Expression) IQueryProvider.CreateQuery<S>(Expression) IQueryProvider.CreateQuery<S>(Expression)

建構新的 EnumerableQuery<T> 物件,並將其與指定的運算式樹狀架構 (表示資料的 IQueryable<T> 集合) 建立關聯。Constructs a new EnumerableQuery<T> object and associates it with a specified expression tree that represents an IQueryable<T> collection of data.

IQueryProvider.Execute(Expression) IQueryProvider.Execute(Expression) IQueryProvider.Execute(Expression) IQueryProvider.Execute(Expression)

在無法以 Enumerable 方法查詢的可列舉資料來源上,將重新寫入運算式以呼叫 Queryable 方法後,執行運算式,而不使用 Queryable 方法。Executes an expression after rewriting it to call Enumerable methods instead of Queryable methods on any enumerable data sources that cannot be queried by Queryable methods.

IQueryProvider.Execute<S>(Expression) IQueryProvider.Execute<S>(Expression) IQueryProvider.Execute<S>(Expression) IQueryProvider.Execute<S>(Expression)

在無法以 Enumerable 方法查詢的可列舉資料來源上,將重新寫入運算式以呼叫 Queryable 方法後,執行運算式,而不使用 Queryable 方法。Executes an expression after rewriting it to call Enumerable methods instead of Queryable methods on any enumerable data sources that cannot be queried by Queryable methods.

擴充方法

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) 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) 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.

Cast<TResult>(IQueryable) Cast<TResult>(IQueryable) Cast<TResult>(IQueryable) Cast<TResult>(IQueryable)

IQueryable 的項目轉換為指定的型別。Converts the elements of an IQueryable to the specified type.

OfType<TResult>(IQueryable) OfType<TResult>(IQueryable) OfType<TResult>(IQueryable) OfType<TResult>(IQueryable)

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

SortBy<T>(IQueryable<T>, String) SortBy<T>(IQueryable<T>, String) SortBy<T>(IQueryable<T>, String) SortBy<T>(IQueryable<T>, String)

指定排序順序。Specifies a sort order.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) 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) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) 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>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

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

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) 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) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) 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>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) 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) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) 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>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) 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>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

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

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

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

適用於