TypedTableBaseExtensions.OrderByDescending メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
TypedTableBase<T>の行を降順に並べ替えます。
オーバーロード
| 名前 | 説明 |
|---|---|
| OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>) |
指定したキーに従って、 TypedTableBase<T> の行を降順に並べ替えます。 |
| OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>) |
指定したキーと比較子に従って、 TypedTableBase<T> の行を降順で並べ替えます。 |
OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)
指定したキーに従って、 TypedTableBase<T> の行を降順に並べ替えます。
public:
generic <typename TRow, typename TKey>
where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
static System::Data::OrderedEnumerableRowCollection<TRow> ^ OrderByDescending(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, TKey> ^ keySelector);
public static System.Data.OrderedEnumerableRowCollection<TRow> OrderByDescending<TRow,TKey>(this System.Data.TypedTableBase<TRow> source, Func<TRow,TKey> keySelector) where TRow : System.Data.DataRow;
static member OrderByDescending : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> * Func<'Row, 'Key (requires 'Row :> System.Data.DataRow)> -> System.Data.OrderedEnumerableRowCollection<'Row (requires 'Row :> System.Data.DataRow)> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function OrderByDescending(Of TRow As DataRow, TKey As DataRow) (source As TypedTableBase(Of TRow), keySelector As Func(Of TRow, TKey)) As OrderedEnumerableRowCollection(Of TRow)
型パラメーター
- TRow
sourceの行要素の型 (通常はDataRow)。
- TKey
keySelectorによって返されるキーの型。
パラメーター
- source
- TypedTableBase<TRow>
順序付けるDataRow要素を含むTypedTableBase<T>。
- keySelector
- Func<TRow,TKey>
要素からキーを抽出する関数。
返品
指定したキーで要素が並べ替えられる OrderedEnumerableRowCollection<TRow> 。
適用対象
OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)
指定したキーと比較子に従って、 TypedTableBase<T> の行を降順で並べ替えます。
public:
generic <typename TRow, typename TKey>
where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
static System::Data::OrderedEnumerableRowCollection<TRow> ^ OrderByDescending(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, TKey> ^ keySelector, System::Collections::Generic::IComparer<TKey> ^ comparer);
public static System.Data.OrderedEnumerableRowCollection<TRow> OrderByDescending<TRow,TKey>(this System.Data.TypedTableBase<TRow> source, Func<TRow,TKey> keySelector, System.Collections.Generic.IComparer<TKey> comparer) where TRow : System.Data.DataRow;
static member OrderByDescending : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> * Func<'Row, 'Key (requires 'Row :> System.Data.DataRow)> * System.Collections.Generic.IComparer<'Key> -> System.Data.OrderedEnumerableRowCollection<'Row (requires 'Row :> System.Data.DataRow)> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function OrderByDescending(Of TRow As DataRow, TKey As DataRow) (source As TypedTableBase(Of TRow), keySelector As Func(Of TRow, TKey), comparer As IComparer(Of TKey)) As OrderedEnumerableRowCollection(Of TRow)
型パラメーター
- TRow
sourceの行要素の型 (通常はDataRow)。
- TKey
keySelectorによって返されるキーの型。
パラメーター
- source
- TypedTableBase<TRow>
順序付けるDataRow要素を含むTypedTableBase<T>。
- keySelector
- Func<TRow,TKey>
要素からキーを抽出する関数。
- comparer
- IComparer<TKey>
キーを比較する IComparer<T> 。
返品
指定したキーと比較子によって要素が並べ替えられる OrderedEnumerableRowCollection<TRow> 。