TypedTableBaseExtensions.OrderBy Metodo

Definizione

Ordina le righe di un oggetto TypedTableBase<T> in ordine crescente.

Overload

Nome Descrizione
OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)

Ordina le righe di un oggetto TypedTableBase<T> in ordine crescente in base alla chiave specificata.

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

Ordina le righe di un oggetto TypedTableBase<T> in ordine crescente in base alla chiave e all'operatore di confronto specificati.

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

Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs

Ordina le righe di un oggetto TypedTableBase<T> in ordine crescente in base alla chiave specificata.

public:
generic <typename TRow, typename TKey>
 where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
 static System::Data::OrderedEnumerableRowCollection<TRow> ^ OrderBy(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, TKey> ^ keySelector);
public static System.Data.OrderedEnumerableRowCollection<TRow> OrderBy<TRow,TKey>(this System.Data.TypedTableBase<TRow> source, Func<TRow,TKey> keySelector) where TRow : System.Data.DataRow;
static member OrderBy : 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 OrderBy(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

Tipo degli elementi di riga in source, in DataRowgenere .

TKey

Tipo della chiave restituita da keySelector.

Parametri

source
TypedTableBase<TRow>

Oggetto TypedTableBase<T> contenente gli DataRow elementi da ordinare.

keySelector
Func<TRow,TKey>

Funzione per estrarre una chiave da un elemento.

Valori restituiti

Oggetto OrderedEnumerableRowCollection<TRow> i cui elementi sono ordinati in base alla chiave specificata.

Si applica a

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

Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs
Origine:
TypedTableBaseExtensions.cs

Ordina le righe di un oggetto TypedTableBase<T> in ordine crescente in base alla chiave e all'operatore di confronto specificati.

public:
generic <typename TRow, typename TKey>
 where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
 static System::Data::OrderedEnumerableRowCollection<TRow> ^ OrderBy(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, TKey> ^ keySelector, System::Collections::Generic::IComparer<TKey> ^ comparer);
public static System.Data.OrderedEnumerableRowCollection<TRow> OrderBy<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 OrderBy : 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 OrderBy(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

Tipo degli elementi di riga in source, in DataRowgenere .

TKey

Tipo della chiave restituita da keySelector.

Parametri

source
TypedTableBase<TRow>

Oggetto TypedTableBase<T> contenente gli DataRow elementi da ordinare.

keySelector
Func<TRow,TKey>

Funzione per estrarre una chiave da un elemento.

comparer
IComparer<TKey>

Oggetto IComparer<T> da confrontare con le chiavi.

Valori restituiti

Oggetto OrderedEnumerableRowCollection<TRow> i cui elementi sono ordinati in base alla chiave e all'operatore di confronto specificati.

Si applica a