Partager via


IQueryProvider Interface

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

Defines methods to create and execute queries that are described by an IQueryable object.

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

Syntax

'Declaration
Public Interface IQueryProvider
public interface IQueryProvider

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone CreateQuery(Expression) Constructs an IQueryable object that can evaluate the query represented by a specified expression tree.
Public methodSupported by Silverlight for Windows Phone CreateQuery<TElement>(Expression) Constructs an IQueryable<T> object that can evaluate the query represented by a specified expression tree.
Public methodSupported by Silverlight for Windows Phone Execute(Expression) Executes the query represented by a specified expression tree.
Public methodSupported by Silverlight for Windows Phone Execute<TResult>(Expression) Executes the strongly-typed query represented by a specified expression tree.

Top

Remarks

The IQueryProvider interface is intended for implementation by query providers.

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.