AsyncEnumerable.OrderByDescending メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
OrderByDescending<TSource,TKey>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<TKey>>, IComparer<TKey>)
- ソース:
- OrderBy.cs
- ソース:
- OrderBy.cs
- ソース:
- OrderBy.cs
シーケンスの要素を降順で並べ替えます。
public static System.Linq.IOrderedAsyncEnumerable<TSource> OrderByDescending<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TKey>> keySelector, System.Collections.Generic.IComparer<TKey>? comparer = default);
static member OrderByDescending : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Key>> * System.Collections.Generic.IComparer<'Key> -> System.Linq.IOrderedAsyncEnumerable<'Source>
<Extension()>
Public Function OrderByDescending(Of TSource, TKey) (source As IAsyncEnumerable(Of TSource), keySelector As Func(Of TSource, CancellationToken, ValueTask(Of TKey)), Optional comparer As IComparer(Of TKey) = Nothing) As IOrderedAsyncEnumerable(Of TSource)
型パラメーター
- TSource
sourceの要素の型。
- TKey
keySelectorによって返されるキーの型。
パラメーター
- source
- IAsyncEnumerable<TSource>
順序付ける値のシーケンス。
- keySelector
- Func<TSource,CancellationToken,ValueTask<TKey>>
要素からキーを抽出する関数。
- comparer
- IComparer<TKey>
キーを比較する IComparer<T> 。
返品
キーに従って要素が降順に並べ替えられる IAsyncEnumerable<T> 。
例外
keySelector は nullです。
適用対象
OrderByDescending<TSource,TKey>(IAsyncEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>)
- ソース:
- OrderBy.cs
- ソース:
- OrderBy.cs
- ソース:
- OrderBy.cs
シーケンスの要素を降順で並べ替えます。
public static System.Linq.IOrderedAsyncEnumerable<TSource> OrderByDescending<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,TKey> keySelector, System.Collections.Generic.IComparer<TKey>? comparer = default);
static member OrderByDescending : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, 'Key> * System.Collections.Generic.IComparer<'Key> -> System.Linq.IOrderedAsyncEnumerable<'Source>
<Extension()>
Public Function OrderByDescending(Of TSource, TKey) (source As IAsyncEnumerable(Of TSource), keySelector As Func(Of TSource, TKey), Optional comparer As IComparer(Of TKey) = Nothing) As IOrderedAsyncEnumerable(Of TSource)
型パラメーター
- TSource
sourceの要素の型。
- TKey
keySelectorによって返されるキーの型。
パラメーター
- source
- IAsyncEnumerable<TSource>
順序付ける値のシーケンス。
- keySelector
- Func<TSource,TKey>
要素からキーを抽出する関数。
- comparer
- IComparer<TKey>
キーを比較する IComparer<T> 。
返品
キーに従って要素が降順に並べ替えられる IAsyncEnumerable<T> 。
例外
keySelector は nullです。