Share via


SelectMany(TInput, TResult)-Methode (CepWindowStream(CepWindow(TInput)), Expression(Func(CepWindow(TInput), CepWindow(TInput))), Expression(Func(CepWindow(TInput), TInput, TResult)))

Unterstützt die Sortierung für einen Datenstrom im Fenster.

Namespace:  Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

public static CepOrderableStream<TResult> SelectMany<TInput, TResult>(
    this CepWindowStream<CepWindow<TInput>> source,
    Expression<Func<CepWindow<TInput>, CepWindow<TInput>>> bind,
    Expression<Func<CepWindow<TInput>, TInput, TResult>> selector
)

Typparameter

  • TInput
    Der Typ der Eingabeereignisnutzlast.
  • TResult
    Der Typ der Ausgabeereignisnutzlast.

Parameter

Rückgabewert

Typ: Microsoft.ComplexEventProcessing.Linq. . :: . .CepOrderableStream< (Of < ( <'TResult> ) > ) >
Ein Datenstrom, der geordnet werden kann.

Hinweis zur Verwendung

In Visual Basic und C# können Sie die Methode als Instanzenmethode für jedes Objekt vom Typ CepWindowStream< (Of < ( <'CepWindow< (Of < ( <'TInput> ) > ) >> ) > ) > aufrufen. Wenn Sie Instanzmethodensyntax zum Aufruf dieser Methode verwenden, vernachlässigen Sie den ersten Parameter. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=sql.105) oder https://msdn.microsoft.com/de-de/library/bb383977(v=sql.105).

Hinweise

Beispiel:

(from w in s.Snapshot()
from e in w
order by e.i
order by e.j descending
select e).Take(10);

Die beiden FROM-Klauseln werden in SelectMany konvertiert.

Siehe auch

Verweis

CepStream Klasse

SelectMany-Überladung

Microsoft.ComplexEventProcessing.Linq-Namespace