TypedTableBaseExtensions.OrderByDescending TypedTableBaseExtensions.OrderByDescending TypedTableBaseExtensions.OrderByDescending TypedTableBaseExtensions.OrderByDescending Method

Definizione

Ordina le righe di una TypedTableBase<T> in ordine decrescente.Sorts the rows of a TypedTableBase<T> in descending order.

Overload

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

Ordina le righe di una TypedTableBase<T> in senso decrescente secondo la chiave specificata.Sorts the rows of a TypedTableBase<T> in descending order according to the specified key.

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

Ordina le righe di una TypedTableBase<T> in senso decrescente secondo la chiave specificata e l'operatore di confronto.Sorts the rows of a TypedTableBase<T> in descending order according to the specified key and comparer.

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

Ordina le righe di una TypedTableBase<T> in senso decrescente secondo la chiave specificata.Sorts the rows of a TypedTableBase<T> in descending order according to the specified key.

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)

Parametri di tipo

TRow

Il tipo degli elementi nella riga source, in genere DataRow.The type of the row elements in source, typically DataRow.

TKey

Tipo della chiave restituita dall'oggetto keySelector.The type of the key returned by keySelector.

Parametri

source
TypedTableBase<TRow>

Oggetto TypedTableBase<T> che contiene il DataRow elementi da ordinare.A TypedTableBase<T> that contains the DataRow elements to be ordered.

keySelector
Func<TRow,TKey>

Funzione per estrarre una chiave da un elemento.A function to extract a key from an element.

Restituisce

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

Ordina le righe di una TypedTableBase<T> in senso decrescente secondo la chiave specificata e l'operatore di confronto.Sorts the rows of a TypedTableBase<T> in descending order according to the specified key and comparer.

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)

Parametri di tipo

TRow

Il tipo degli elementi nella riga source, in genere DataRow.The type of the row elements in source, typically DataRow.

TKey

Tipo della chiave restituita dall'oggetto keySelector.The type of the key returned by keySelector.

Parametri

source
TypedTableBase<TRow>

Oggetto TypedTableBase<T> che contiene il DataRow elementi da ordinare.A TypedTableBase<T> that contains the DataRow elements to be ordered.

keySelector
Func<TRow,TKey>

Funzione per estrarre una chiave da un elemento.A function to extract a key from an element.

comparer
IComparer<TKey>

Oggetto IComparer<T> per confrontare le chiavi.An IComparer<T> to compare keys.

Restituisce

Un OrderedEnumerableRowCollection<TRow> cui elementi sono ordinati secondo la chiave specificata e l'operatore di confronto.An OrderedEnumerableRowCollection<TRow> whose elements are sorted by the specified key and comparer.

Si applica a