.NET Framework Class Library
IQueryable Interface

Updated: September 2008

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

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

Visual Basic (Declaration)
Public Interface IQueryable _
    Inherits IEnumerable
Visual Basic (Usage)
Dim instance As IQueryable
C#
public interface IQueryable : IEnumerable
Visual C++
public interface class IQueryable : IEnumerable
JScript
public interface IQueryable extends IEnumerable
Remarks

The IQueryable interface is intended for implementation by query providers. It is only supposed to be implemented by providers that also implement IQueryable<(Of <(T>)>). If the provider does not also implement IQueryable<(Of <(T>)>), the standard query operators cannot be used on the provider's data source.

The IQueryable 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 IQueryable 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 Walkthrough: Creating an IQueryable LINQ Provider in the MSDN Library and LINQ: Building an IQueryable Provider on MSDN Blogs.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, 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: 3.5
See Also

Reference

Other Resources

Change History

Date

History

Reason

September 2008

Added links about custom query providers.

Customer feedback.

Tags :


Page view tracker