QueryableExtensionsWhere Method (IQueryable, Expression) |
Filters a sequence of values based on a predicate.
Namespace: Kettic.AspNet.Data.ExtensionsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic static IQueryable Where(
this IQueryable source,
Expression predicate
)
<ExtensionAttribute>
Public Shared Function Where (
source As IQueryable,
predicate As Expression
) As IQueryable
public:
[ExtensionAttribute]
static IQueryable^ Where(
IQueryable^ source,
Expression^ predicate
)
static member Where :
source : IQueryable *
predicate : Expression -> IQueryable
Parameters
- source
- Type: System.LinqIQueryable
An IQueryable to filter. - predicate
- Type: System.Linq.ExpressionsExpression
A function to test each element for a condition.
Return Value
Type:
IQueryable
An
IQueryable that contains elements from the input sequence
that satisfy the condition specified by
predicate.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also