次の方法で共有


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)

Parameters

  • 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.

Return Value

The result sequence.

Remarks

This method implements the for loop syntax for query expressions.

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

Reference

Linq.QueryBuilder Class (F#)

Microsoft.FSharp.Linq Namespace (F#)

Query Expressions (F#)