QStreamable.SelectMany<TKey, TSource, TBind, TResult> 方法 (IQPartitionedStreamable<TKey, TSource>, Expression<Func<IQStreamable<TSource>, IQStreamable<TBind>>>, Expression<Func<IKey<TKey>, TBind, TResult>>)
分割資料流的合併運算子。
命名空間: Microsoft.ComplexEventProcessing.Linq
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
'宣告
<ExtensionAttribute> _
Public Shared Function SelectMany(Of TKey, TSource, TBind, TResult) ( _
source As IQPartitionedStreamable(Of TKey, TSource), _
streamSelector As Expression(Of Func(Of IQStreamable(Of TSource), IQStreamable(Of TBind))), _
resultSelector As Expression(Of Func(Of IKey(Of TKey), TBind, TResult)) _
) As IQStreamable(Of TResult)
'用途
Dim source As IQPartitionedStreamable(Of TKey, TSource)
Dim streamSelector As Expression(Of Func(Of IQStreamable(Of TSource), IQStreamable(Of TBind)))
Dim resultSelector As Expression(Of Func(Of IKey(Of TKey), TBind, TResult))
Dim returnValue As IQStreamable(Of TResult)
returnValue = source.SelectMany(streamSelector, _
resultSelector)
public static IQStreamable<TResult> SelectMany<TKey, TSource, TBind, TResult>(
this IQPartitionedStreamable<TKey, TSource> source,
Expression<Func<IQStreamable<TSource>, IQStreamable<TBind>>> streamSelector,
Expression<Func<IKey<TKey>, TBind, TResult>> resultSelector
)
[ExtensionAttribute]
public:
generic<typename TKey, typename TSource, typename TBind, typename TResult>
static IQStreamable<TResult>^ SelectMany(
IQPartitionedStreamable<TKey, TSource>^ source,
Expression<Func<IQStreamable<TSource>^, IQStreamable<TBind>^>^>^ streamSelector,
Expression<Func<IKey<TKey>^, TBind, TResult>^>^ resultSelector
)
static member SelectMany :
source:IQPartitionedStreamable<'TKey, 'TSource> *
streamSelector:Expression<Func<IQStreamable<'TSource>, IQStreamable<'TBind>>> *
resultSelector:Expression<Func<IKey<'TKey>, 'TBind, 'TResult>> -> IQStreamable<'TResult>
JScript 不支援泛型型別及方法。
型別參數
- TKey
資料分割索引鍵類型。
- TSource
來源裝載類型。
- TBind
中繼裝載類型。
- TResult
結果裝載類型。
參數
- source
型別:Microsoft.ComplexEventProcessing.Linq.IQPartitionedStreamable<TKey, TSource>
分割資料流來源。
- streamSelector
型別:System.Linq.Expressions.Expression<Func<IQStreamable<TSource>, IQStreamable<TBind>>>
在給定分割資料流時傳回結果資料流的函數。
- resultSelector
型別:System.Linq.Expressions.Expression<Func<IKey<TKey>, TBind, TResult>>
投射運算式。
傳回值
型別:Microsoft.ComplexEventProcessing.Linq.IQStreamable<TResult>
合併的資料流。
使用注意事項
在 Visual Basic 及 C# 中,您可以在任何型別 IQPartitionedStreamable<TKey, TSource> 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=sql.111) 或 https://msdn.microsoft.com/zh-tw/library/bb383977(v=sql.111)。