System.Linq.IQueryProvider.Execute Method

Executes the query represented by a specified expression tree.

Syntax

public object Execute (System.Linq.Expressions.Expression expression)

Parameters

expression
An expression tree that represents a vbteclinq query.

Returns

The value that results from executing the specified query.

Remarks

The IQueryProvider.Execute(System.Linq.Expressions.Expression) method executes queries that return a single value (instead of an enumerable sequence of values). Expression trees that represent queries that return enumerable results are executed when their associated System.Linq.IQueryable object is enumerated.

Requirements

Namespace: System.Linq
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 3.5.0.0, 4.0.0.0