EnumerableRowCollectionExtensions.ThenBy 메서드

정의

EnumerableRowCollection의 행을 오름차순으로 두 번째로 정렬합니다.

오버로드

ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>)

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

EnumerableRowCollection의 행을 지정된 키에 따라 오름차순으로 두 번째로 정렬합니다.

ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>)

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

EnumerableRowCollection의 행을 지정된 키 및 비교자에 따라 오름차순으로 두 번째로 정렬합니다.

ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>)

Source:
EnumerableRowCollectionExtensions.cs
Source:
EnumerableRowCollectionExtensions.cs
Source:
EnumerableRowCollectionExtensions.cs

EnumerableRowCollection의 행을 지정된 키에 따라 오름차순으로 두 번째로 정렬합니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
generic <typename TRow, typename TKey>
[System::Runtime::CompilerServices::Extension]
 static System::Data::OrderedEnumerableRowCollection<TRow> ^ ThenBy(System::Data::OrderedEnumerableRowCollection<TRow> ^ source, Func<TRow, TKey> ^ keySelector);
public static System.Data.OrderedEnumerableRowCollection<TRow> ThenBy<TRow,TKey> (this System.Data.OrderedEnumerableRowCollection<TRow> source, Func<TRow,TKey> keySelector);
static member ThenBy : System.Data.OrderedEnumerableRowCollection<'Row> * Func<'Row, 'Key> -> System.Data.OrderedEnumerableRowCollection<'Row>
<Extension()>
Public Function ThenBy(Of TRow, TKey) (source As OrderedEnumerableRowCollection(Of TRow), keySelector As Func(Of TRow, TKey)) As OrderedEnumerableRowCollection(Of TRow)

형식 매개 변수

TRow

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

TKey

keySelector에서 반환하는 키의 형식입니다.

매개 변수

source
OrderedEnumerableRowCollection<TRow>

순서를 지정할 EnumerableRowCollection 요소가 들어 있는 DataRow입니다.

keySelector
Func<TRow,TKey>

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

반환

요소가 지정된 키에 따라 정렬된 OrderedEnumerableRowCollection<TRow>입니다.

설명

사용 된 ThenBy 작업을 수행 하려면 기본 정렬 작업 하 여 기존 OrderBy합니다.

이 메서드는 지연 된 실행을 사용 하 여 구현 됩니다. 즉시 반환 값은 작업을 수행 하는 데 필요한 모든 정보를 저장 하는 개체입니다. 이 메서드를 나타내는 쿼리 하거나 호출 하 여 개체 열거 될 때까지 실행 되지 않습니다 해당 GetEnumerator 메서드를 사용 하 여 직접 또는 foreach Visual C# 또는 For Each Visual Basic의 합니다.

추가 정보

적용 대상

ThenBy<TRow,TKey>(OrderedEnumerableRowCollection<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Source:
EnumerableRowCollectionExtensions.cs
Source:
EnumerableRowCollectionExtensions.cs
Source:
EnumerableRowCollectionExtensions.cs

EnumerableRowCollection의 행을 지정된 키 및 비교자에 따라 오름차순으로 두 번째로 정렬합니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
generic <typename TRow, typename TKey>
[System::Runtime::CompilerServices::Extension]
 static System::Data::OrderedEnumerableRowCollection<TRow> ^ ThenBy(System::Data::OrderedEnumerableRowCollection<TRow> ^ source, Func<TRow, TKey> ^ keySelector, System::Collections::Generic::IComparer<TKey> ^ comparer);
public static System.Data.OrderedEnumerableRowCollection<TRow> ThenBy<TRow,TKey> (this System.Data.OrderedEnumerableRowCollection<TRow> source, Func<TRow,TKey> keySelector, System.Collections.Generic.IComparer<TKey> comparer);
static member ThenBy : System.Data.OrderedEnumerableRowCollection<'Row> * Func<'Row, 'Key> * System.Collections.Generic.IComparer<'Key> -> System.Data.OrderedEnumerableRowCollection<'Row>
<Extension()>
Public Function ThenBy(Of TRow, TKey) (source As OrderedEnumerableRowCollection(Of TRow), keySelector As Func(Of TRow, TKey), comparer As IComparer(Of TKey)) As OrderedEnumerableRowCollection(Of TRow)

형식 매개 변수

TRow

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

TKey

keySelector에서 반환하는 키의 형식입니다.

매개 변수

source
OrderedEnumerableRowCollection<TRow>

순서를 지정할 EnumerableRowCollection 요소가 들어 있는 DataRow입니다.

keySelector
Func<TRow,TKey>

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

comparer
IComparer<TKey>

키를 비교할 IComparer<T>입니다.

반환

요소가 지정된 키 및 비교자에 따라 정렬된 OrderedEnumerableRowCollection<TRow>입니다.

설명

사용 된 ThenBy 작업을 수행 하려면 기본 정렬 작업 하 여 기존 OrderBy합니다.

이 메서드는 지연 된 실행을 사용 하 여 구현 됩니다. 즉시 반환 값은 작업을 수행 하는 데 필요한 모든 정보를 저장 하는 개체입니다. 이 메서드를 나타내는 쿼리 하거나 호출 하 여 개체 열거 될 때까지 실행 되지 않습니다 해당 GetEnumerator 메서드를 사용 하 여 직접 또는 foreach Visual C# 또는 For Each Visual Basic의 합니다.

추가 정보

적용 대상