다음을 통해 공유


Queryable.GroupBy Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Groups the elements of a sequence.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey>(IQueryable<TSource>, Expression<Func<TSource, TKey>>) Groups the elements of a sequence according to a specified key selector function.
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>) Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey, TElement>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>) Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey, TResult>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey, TElement>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, IEqualityComparer<TKey>) Groups the elements of a sequence and projects the elements for each group by using a specified function. Key values are compared by using a specified comparer.
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey, TElement, TResult>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey, TResult>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>, IEqualityComparer<TKey>) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Keys are compared by using a specified comparer.
Public methodStatic memberSupported by Silverlight for Windows Phone GroupBy<TSource, TKey, TElement, TResult>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>, IEqualityComparer<TKey>) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Keys are compared by using a specified comparer and the elements of each group are projected by using a specified function.

Top