IOrderedQueryable 介面

定義

代表排序作業的結果。Represents the result of a sorting operation.

public interface class IOrderedQueryable : System::Collections::IEnumerable, System::Linq::IQueryable
public interface IOrderedQueryable : System.Collections.IEnumerable, System.Linq.IQueryable
type IOrderedQueryable = interface
    interface IQueryable
    interface IEnumerable
Public Interface IOrderedQueryable
Implements IEnumerable, IQueryable
衍生
實作

備註

IOrderedQueryable介面是供查詢提供者執行。The IOrderedQueryable interface is intended for implementation by query providers.

這個介面OrderBy代表呼叫ThenByOrderByDescending方法之排序查詢的結果。ThenByDescendingThis interface represents the result of a sorting query that calls the method(s) OrderBy, OrderByDescending, ThenBy or ThenByDescending. CreateQuery呼叫並傳遞表示排序查詢的運算式樹狀架構時, 產生IQueryable的物件必須是實作為類型IOrderedQueryableWhen CreateQuery is called and passed an expression tree that represents a sorting query, the resulting IQueryable object must be of a type that implements IOrderedQueryable.

如需如何建立您自己的 LINQ 提供者的詳細資訊, 請參閱 linq:在 MSDN blog 上建立 IQueryable 提供者。For more information about how to create your own LINQ provider, see LINQ: Building an IQueryable Provider on MSDN Blogs.

屬性

ElementType

取得與這個 IQueryable 執行個體關聯的運算式樹狀架構執行時,所傳回項目的型別。Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed.

(繼承來源 IQueryable)
Expression

取得與 IQueryable 之執行個體關聯的運算式樹狀架構。Gets the expression tree that is associated with the instance of IQueryable.

(繼承來源 IQueryable)
Provider

取得與這個資料來源關聯的查詢提供者。Gets the query provider that is associated with this data source.

(繼承來源 IQueryable)

方法

GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through a collection.

(繼承來源 IEnumerable)

擴充方法

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.

Cast<TResult>(IQueryable)

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

OfType<TResult>(IQueryable)

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

適用於

另請參閱