IQueryable<(Of <(T>)>) Interface
This page is specific to:.NET Framework Version:3.5Silverlight 34.0
.NET Framework Class Library
IQueryable<(Of <(T>)>) Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides functionality to evaluate queries against a specific data source wherein the type of the data is known.

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

'Usage

Dim instance As IQueryable(Of Out T)

'Declaration

Public Interface IQueryable(Of Out T) _
    Inherits IEnumerable(Of T), IQueryable, IEnumerable

Type Parameters

out Out out out T

The type of the data in the data source.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Remarks

The IQueryable<(Of <(T>)>) interface is intended for implementation by query providers.

This interface inherits the IEnumerable<(Of <(T>)>) interface so that if it represents a query, the results of that query can be enumerated. Enumeration forces the expression tree associated with an IQueryable<(Of <(T>)>) object to be executed. Queries that do not return enumerable results are executed when the Execute<(Of <(TResult>)>)(Expression) method is called.

The definition of "executing an expression tree" is specific to a query provider. For example, it may involve translating the expression tree to a query language appropriate for an underlying data source.

The IQueryable<(Of <(T>)>) interface enables queries to be polymorphic. That is, because a query against an IQueryable data source is represented as an expression tree, it can be executed against different types of data sources.

The static (Shared in Visual Basic) methods defined in the class Queryable (except for AsQueryable()()(), ThenBy()()(), and ThenByDescending()()()) extend objects of types that implement the IQueryable<(Of <(T>)>) interface.

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

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View