TypedTableBaseExtensions.OrderBy 메서드

정의

행을 오름차순으로 TypedTableBase<T> 정렬합니다.

오버로드

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

지정된 키에 TypedTableBase<T> 따라 오름차순으로 행을 정렬합니다.

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

지정된 키와 비교자에 TypedTableBase<T> 따라 오름차순으로 행을 정렬합니다.

OrderBy<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> ^ 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)

형식 매개 변수

TRow

일반적으로 행 요소 source의 형식입니다 DataRow.

TKey

keySelector반환된 키의 형식입니다.

매개 변수

source
TypedTableBase<TRow>

정렬할 요소가 들어 DataRow 있는 A TypedTableBase<T> 입니다.

keySelector
Func<TRow,TKey>

요소에서 키를 추출하는 함수입니다.

반품

OrderedEnumerableRowCollection<TRow> 지정된 키를 기준으로 요소가 정렬되는 요소입니다.

적용 대상

OrderBy<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> ^ 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)

형식 매개 변수

TRow

일반적으로 행 요소 source의 형식입니다 DataRow.

TKey

keySelector반환된 키의 형식입니다.

매개 변수

source
TypedTableBase<TRow>

정렬할 요소가 들어 DataRow 있는 A TypedTableBase<T> 입니다.

keySelector
Func<TRow,TKey>

요소에서 키를 추출하는 함수입니다.

comparer
IComparer<TKey>

IComparer<T> 키를 비교할 수 있는 항목입니다.

반품

OrderedEnumerableRowCollection<TRow> 지정된 키와 비교자를 기준으로 요소가 정렬되는 요소입니다.

적용 대상