IOrderedQueryable IOrderedQueryable IOrderedQueryable IOrderedQueryable Interface


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


The IOrderedQueryable interface is intended for implementation by query providers.

This interface represents the result of a sorting query that calls the method(s) OrderBy, OrderByDescending, ThenBy or ThenByDescending. When 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.

For more information about how to create your own LINQ provider, see LINQ: Building an IQueryable Provider on MSDN Blogs.


GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through a collection.

(Inherited from IEnumerable)


ElementType ElementType ElementType ElementType

Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed.

(Inherited from IQueryable)

Expression Expression Expression Expression

Gets the expression tree that is associated with the instance of IQueryable.

(Inherited from IQueryable)

Provider Provider Provider Provider

Gets the query provider that is associated with this data source.

(Inherited from IQueryable)

Extension Methods

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

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(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)

Converts an IEnumerable to an IQueryable.

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

Converts the elements of an IQueryable to the specified type.

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

Filters the elements of an IQueryable based on a specified type.

Applies to

See also