Metodo QueryBuilder.SumBy<'T,'Q,^Value> (F#)
Operatore di query che seleziona un valore per ogni elemento selezionato finora e restituisce la somma di questi valori.
Namespace/Module Path: Microsoft.FSharp.Linq
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
member this.SumBy : QuerySource<'T,'Q> * ('T -> ^Value) -> ^Value when ^Value with static member (+) and ^Value with static member Zero
// Usage:
queryBuilder.SumBy (source, projection)
Parametri
source
Tipo: QuerySource< " T “, Q>La query di input.
projection
Tipo: - 'T > ^ValueUna funzione per calcolare i valori per sommare.
Valore restituito
Somma risultante.
Note
Per ulteriori informazioni ed esempi, vedere espressioni di query (F#).
Piattaforme
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Informazioni sulla versione
Versioni della libreria di base F#
Supportato in: 4,0, portabile