IOrderedQueryable Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents the result of a sorting operation.

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

Syntax

'Declaration
Public Interface IOrderedQueryable _
    Inherits IQueryable, IEnumerable
public interface IOrderedQueryable : IQueryable, 
    IEnumerable

The IOrderedQueryable type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone 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.)
Public propertySupported by Silverlight for Windows Phone Expression Gets the expression tree that is associated with the instance of IQueryable. (Inherited from IQueryable.)
Public propertySupported by Silverlight for Windows Phone Provider Gets the query provider that is associated with this data source. (Inherited from IQueryable.)

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone GetEnumerator Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)

Top

Extension Methods

  Name Description
Public Extension MethodSupported by Silverlight for Windows Phone AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows Phone Cast<TResult>() Overloaded. Converts the elements of an IQueryable to the specified type. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows Phone Cast<TResult>() Overloaded. Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by Silverlight for Windows Phone OfType<TResult>() Overloaded. Filters the elements of an IQueryable based on a specified type. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows Phone OfType<TResult>() Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

Top

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.