TypedTableBaseExtensions.OrderByDescending 方法

定义

按降序排序 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>)

Source:
TypedTableBaseExtensions.cs
Source:
TypedTableBaseExtensions.cs
Source:
TypedTableBaseExtensions.cs

按指定键降序排序 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>

一个 TypedTableBase<T>,其中包含要排序的 DataRow 元素。

keySelector
Func<TRow,TKey>

用于从元素中提取键的函数。

返回

一个 OrderedEnumerableRowCollection<TRow>,其元素按指定键排序。

适用于

OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Source:
TypedTableBaseExtensions.cs
Source:
TypedTableBaseExtensions.cs
Source:
TypedTableBaseExtensions.cs

按指定键和比较器降序排序 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>

一个 TypedTableBase<T>,其中包含要排序的 DataRow 元素。

keySelector
Func<TRow,TKey>

用于从元素中提取键的函数。

comparer
IComparer<TKey>

用于比较键的 IComparer<T>

返回

一个 OrderedEnumerableRowCollection<TRow>,其元素按指定键和比较器排序。

适用于