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