IOrderedQueryable Interface

IOrderedQueryable Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Represents the result of a sorting operation.

Namespace:  System.Linq
Assembly:  System.Core (in System.Core.dll)

No code example is currently available or this language may not be supported.

The IOrderedQueryable type exposes the following members.

  NameDescription
Public propertyElementTypeGets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed. (Inherited from IQueryable.)
Public propertyExpressionGets the expression tree that is associated with the instance of IQueryable. (Inherited from IQueryable.)
Public propertyProviderGets the query provider that is associated with this data source. (Inherited from IQueryable.)
Top

  NameDescription
Public methodGetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Top

  NameDescription
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>()Overloaded. Converts the elements of an IQueryable to the specified type. (Defined by Queryable.)
Public Extension MethodCast<TResult>()Overloaded. Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>()Overloaded. Filters the elements of an IQueryable based on a specified type. (Defined by Queryable.)
Public Extension MethodOfType<TResult>()Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft