QueryBuilder.Where<'T,'Q> Method (F#)
A query operator that selects those elements based on a specified predicate.
Namespace/Module Path: Microsoft.FSharp.Linq
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
member this.Where : QuerySource<'T,'Q> * ('T -> bool) -> QuerySource<'T,'Q>
// Usage:
queryBuilder.Where (source, predicate)
Parameters
source
Type: QuerySource<'T,'Q>The input query.
predicate
Type: 'T -> boolA Boolean expression that specifies elements to select.
Return Value
The resulting query.
Remarks
For more information and examples, see Query Expressions (F#).
Platforms
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Version Information
F# Core Library Versions
Supported in: 4.0, Portable
See Also
Tasks
How to: Handle Exceptions in Query Expressions (C# Programming Guide)