TypedTableBaseExtensions.OrderBy Método

Definición

Ordena las filas de en TypedTableBase<T> orden ascendente.

Sobrecargas

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

Ordena las filas de un objeto TypedTableBase<T> en orden ascendente según la clave especificada.

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

Ordena las filas de un TypedTableBase<T> objeto en orden ascendente según la clave y el comparador especificados.

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

Ordena las filas de un objeto TypedTableBase<T> en orden ascendente según la clave especificada.

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)

Parámetros de tipo

TRow

Tipo de los elementos row de source, normalmente DataRow.

TKey

Tipo de la clave devuelta por keySelector.

Parámetros

source
TypedTableBase<TRow>

TypedTableBase<T> que contiene los DataRow elementos que se van a ordenar.

keySelector
Func<TRow,TKey>

Función para extraer una clave de un elemento.

Devoluciones

cuyos OrderedEnumerableRowCollection<TRow> elementos están ordenados por la clave especificada.

Se aplica a

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

Ordena las filas de un TypedTableBase<T> objeto en orden ascendente según la clave y el comparador especificados.

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)

Parámetros de tipo

TRow

Tipo de los elementos row de source, normalmente DataRow.

TKey

Tipo de la clave devuelta por keySelector.

Parámetros

source
TypedTableBase<TRow>

TypedTableBase<T> que contiene los DataRow elementos que se van a ordenar.

keySelector
Func<TRow,TKey>

Función para extraer una clave de un elemento.

comparer
IComparer<TKey>

que IComparer<T> se va a comparar las claves.

Devoluciones

cuyos OrderedEnumerableRowCollection<TRow> elementos se ordenan por la clave y el comparador especificados.

Se aplica a