Expand Minimize

QueryBuilder.For<'T,'Q,'Result,'Q2> Method (F#)

A method used to support the F# query syntax. Projects each element of a sequence to another sequence and combines the resulting sequences into one sequence.

Namespace/Module Path: Microsoft.FSharp.Linq

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
member this.For : QuerySource<'T,'Q> * ('T -> QuerySource<'Result,'Q2>) -> QuerySource<'Result,'Q>

// Usage:
queryBuilder.For (source, body)

source

Type: QuerySource<'T,'Q>

The input query.

body

Type: 'T -> QuerySource<'Result,'Q2>

A function that represents the body of the for loop in a query expression.

The result sequence.

This method implements the for loop syntax for query expressions.

For more information and examples, see Query Expressions (F#).

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

F# Core Library Versions

Supported in: 4.0, Portable

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft