Provides functionality to evaluate queries against a specific data source wherein the type of the data is not specified.
Assembly: System.Core (in System.Core.dll)
Public Interface IQueryable _ Inherits [%$TOPIC/bb495796_en-us_VS_110_1_0_0_0_0%]
public interface IQueryable : [%$TOPIC/bb495796_en-us_VS_110_1_0_1_0_0%]
public interface class IQueryable : [%$TOPIC/bb495796_en-us_VS_110_1_0_2_0_0%]
type IQueryable = interface interface [%$TOPIC/bb495796_en-us_VS_110_1_0_3_0_0%] end
Thetype exposes the following members.
|ElementType||Gets the type of the element(s) that are returned when the expression tree associated with this instance of is executed.|
|Expression||Gets the expression tree that is associated with the instance of .|
|Provider||Gets the query provider that is associated with this data source.|
|AsParallel||Enables parallelization of a query. (Defined by ParallelEnumerable.)|
|AsQueryable||Converts an IEnumerable to an . (Defined by Queryable.)|
|CastTResult||Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)|
|CastTResult||Overloaded. Converts the elements of an to the specified type. (Defined by Queryable.)|
|OfTypeTResult||Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)|
|OfTypeTResult||Overloaded. Filters the elements of an based on a specified type. (Defined by Queryable.)|
The interface is intended for implementation by query providers. It is only supposed to be implemented by providers that also implement IQueryableT. If the provider does not also implement IQueryableT, the standard query operators cannot be used on the provider's data source.
The interface inherits the IEnumerable interface so that if it represents a query, the results of that query can be enumerated. Enumeration causes the expression tree associated with an object to be executed. The definition of "executing an expression tree" is specific to a query provider. For example, it may involve translating the expression tree to an appropriate query language for the underlying data source. Queries that do not return enumerable results are executed when the Execute method is called.
For more information about how to create your own LINQ provider, see LINQ: Building an IQueryable Provider on MSDN Blogs.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)