ParallelEnumerable.ToLookup 메서드

정의

오버로드

ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

지정된 키 선택기 함수, 비교자 및 요소 선택기 함수에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function, a comparer and an element selector function.

ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

지정된 키 선택기와 요소 선택기 함수에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to specified key selector and element selector functions.

ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

지정된 키 선택기 함수와 키 비교자에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function and key comparer.

ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>)

지정된 키 선택기 함수에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function.

ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

지정된 키 선택기 함수, 비교자 및 요소 선택기 함수에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function, a comparer and an element selector function.

public:
generic <typename TSource, typename TKey, typename TElement>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ILookup<TKey, TElement> ^ ToLookup(System::Linq::ParallelQuery<TSource> ^ source, Func<TSource, TKey> ^ keySelector, Func<TSource, TElement> ^ elementSelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Linq.ILookup<TKey,TElement> ToLookup<TSource,TKey,TElement> (this System.Linq.ParallelQuery<TSource> source, Func<TSource,TKey> keySelector, Func<TSource,TElement> elementSelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
static member ToLookup : System.Linq.ParallelQuery<'Source> * Func<'Source, 'Key> * Func<'Source, 'Element> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Linq.ILookup<'Key, 'Element>
<Extension()>
Public Function ToLookup(Of TSource, TKey, TElement) (source As ParallelQuery(Of TSource), keySelector As Func(Of TSource, TKey), elementSelector As Func(Of TSource, TElement), comparer As IEqualityComparer(Of TKey)) As ILookup(Of TKey, TElement)

형식 매개 변수

TSource

source의 요소 형식입니다.The type of elements of source.

TKey

keySelector에서 반환하는 키의 형식입니다.The type of the key returned by keySelector.

TElement

elementSelector에서 반환하는 값의 형식입니다.The type of the value returned by elementSelector.

매개 변수

source
ParallelQuery<TSource>

ILookup<TKey,TElement>을 만드는 데 사용할 시퀀스입니다.The sequence to create a ILookup<TKey,TElement> from.

keySelector
Func<TSource,TKey>

각 요소에서 키를 추출하는 함수입니다.A function to extract a key from each element.

elementSelector
Func<TSource,TElement>

각 요소를 사용하여 결과 요소 값을 생성할 변형 함수입니다.A transform function to produce a result element value from each element.

comparer
IEqualityComparer<TKey>

키를 비교할 IEqualityComparer<T>입니다.An IEqualityComparer<T> to compare keys.

반환

입력 시퀀스에서 선택한 TElement 형식의 값이 들어 있는 Lookup<(Of <(TKey, TElement>)>)입니다.A Lookup<(Of <(TKey, TElement>)>) that contains values of type TElement selected from the input sequence.

예외

WithCancellation 통해 전달된 토큰으로 쿼리가 취소된 경우The query was canceled with the token passed in through WithCancellation.

source 또는 keySelector 또는 elementSelector는 null 참조(Visual Basic에서는 Nothing)입니다.source or keySelector or elementSelector is a null reference (Nothing in Visual Basic).

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.One or more exceptions occurred during the evaluation of the query.

추가 정보

ToLookup<TSource,TKey,TElement>(ParallelQuery<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

지정된 키 선택기와 요소 선택기 함수에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to specified key selector and element selector functions.

public:
generic <typename TSource, typename TKey, typename TElement>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ILookup<TKey, TElement> ^ ToLookup(System::Linq::ParallelQuery<TSource> ^ source, Func<TSource, TKey> ^ keySelector, Func<TSource, TElement> ^ elementSelector);
public static System.Linq.ILookup<TKey,TElement> ToLookup<TSource,TKey,TElement> (this System.Linq.ParallelQuery<TSource> source, Func<TSource,TKey> keySelector, Func<TSource,TElement> elementSelector);
static member ToLookup : System.Linq.ParallelQuery<'Source> * Func<'Source, 'Key> * Func<'Source, 'Element> -> System.Linq.ILookup<'Key, 'Element>
<Extension()>
Public Function ToLookup(Of TSource, TKey, TElement) (source As ParallelQuery(Of TSource), keySelector As Func(Of TSource, TKey), elementSelector As Func(Of TSource, TElement)) As ILookup(Of TKey, TElement)

형식 매개 변수

TSource

source의 요소 형식입니다.The type of elements of source.

TKey

keySelector에서 반환하는 키의 형식입니다.The type of the key returned by keySelector.

TElement

elementSelector에서 반환하는 값의 형식입니다.The type of the value returned by elementSelector.

매개 변수

source
ParallelQuery<TSource>

ILookup<TKey,TElement>을 만드는 데 사용할 시퀀스입니다.The sequence to create a ILookup<TKey,TElement> from.

keySelector
Func<TSource,TKey>

각 요소에서 키를 추출하는 함수입니다.A function to extract a key from each element.

elementSelector
Func<TSource,TElement>

각 요소를 사용하여 결과 요소 값을 생성할 변형 함수입니다.A transform function to produce a result element value from each element.

반환

입력 시퀀스에서 선택한 ILookup<TKey,TElement> 형식 값이 포함된 TElement입니다.A ILookup<TKey,TElement> that contains values of type TElement selected from the input sequence.

예외

WithCancellation 통해 전달된 토큰으로 쿼리가 취소된 경우The query was canceled with the token passed in through WithCancellation.

source 또는 keySelector 또는 elementSelector는 null 참조(Visual Basic에서는 Nothing)입니다.source or keySelector or elementSelector is a null reference (Nothing in Visual Basic).

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.One or more exceptions occurred during the evaluation of the query.

추가 정보

ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

지정된 키 선택기 함수와 키 비교자에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function and key comparer.

public:
generic <typename TSource, typename TKey>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ILookup<TKey, TSource> ^ ToLookup(System::Linq::ParallelQuery<TSource> ^ source, Func<TSource, TKey> ^ keySelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Linq.ILookup<TKey,TSource> ToLookup<TSource,TKey> (this System.Linq.ParallelQuery<TSource> source, Func<TSource,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey> comparer);
static member ToLookup : System.Linq.ParallelQuery<'Source> * Func<'Source, 'Key> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Linq.ILookup<'Key, 'Source>
<Extension()>
Public Function ToLookup(Of TSource, TKey) (source As ParallelQuery(Of TSource), keySelector As Func(Of TSource, TKey), comparer As IEqualityComparer(Of TKey)) As ILookup(Of TKey, TSource)

형식 매개 변수

TSource

source의 요소 형식입니다.The type of elements of source.

TKey

keySelector에서 반환하는 키의 형식입니다.The type of the key returned by keySelector.

매개 변수

source
ParallelQuery<TSource>

ILookup<TKey,TElement>을 만드는 데 사용할 시퀀스입니다.The sequence to create a ILookup<TKey,TElement> from.

keySelector
Func<TSource,TKey>

각 요소에서 키를 추출하는 함수입니다.A function to extract a key from each element.

comparer
IEqualityComparer<TKey>

키를 비교할 IEqualityComparer<T>입니다.An IEqualityComparer<T> to compare keys.

반환

ILookup<TKey,TSource>

키와 값이 들어 있는 ILookup<TKey,TElement>입니다.A ILookup<TKey,TElement> that contains keys and values.

예외

WithCancellation 통해 전달된 토큰으로 쿼리가 취소된 경우The query was canceled with the token passed in through WithCancellation.

source 또는 keySelector 또는 null 참조(Visual Basic에서는 Nothing)입니다.source or keySelector or is a null reference (Nothing in Visual Basic).

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.One or more exceptions occurred during the evaluation of the query.

추가 정보

ToLookup<TSource,TKey>(ParallelQuery<TSource>, Func<TSource,TKey>)

지정된 키 선택기 함수에 따라 ILookup<TKey,TElement>를 사용하여 ParallelQuery<TSource>을 만듭니다.Creates an ILookup<TKey,TElement> from a ParallelQuery<TSource> according to a specified key selector function.

public:
generic <typename TSource, typename TKey>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ILookup<TKey, TSource> ^ ToLookup(System::Linq::ParallelQuery<TSource> ^ source, Func<TSource, TKey> ^ keySelector);
public static System.Linq.ILookup<TKey,TSource> ToLookup<TSource,TKey> (this System.Linq.ParallelQuery<TSource> source, Func<TSource,TKey> keySelector);
static member ToLookup : System.Linq.ParallelQuery<'Source> * Func<'Source, 'Key> -> System.Linq.ILookup<'Key, 'Source>
<Extension()>
Public Function ToLookup(Of TSource, TKey) (source As ParallelQuery(Of TSource), keySelector As Func(Of TSource, TKey)) As ILookup(Of TKey, TSource)

형식 매개 변수

TSource

source의 요소 형식입니다.The type of elements of source.

TKey

keySelector에서 반환하는 키의 형식입니다.The type of the key returned by keySelector.

매개 변수

source
ParallelQuery<TSource>

ILookup<TKey,TElement>을 만드는 데 사용할 시퀀스입니다.The sequence to create a ILookup<TKey,TElement> from.

keySelector
Func<TSource,TKey>

각 요소에서 키를 추출하는 함수입니다.A function to extract a key from each element.

반환

ILookup<TKey,TSource>

키와 값이 들어 있는 ILookup<TKey,TElement>입니다.A ILookup<TKey,TElement> that contains keys and values.

예외

WithCancellation 통해 전달된 토큰으로 쿼리가 취소된 경우The query was canceled with the token passed in through WithCancellation.

source 또는 keySelector가 null 참조(Visual Basic의 경우 Nothing)인 경우source or keySelector is a null reference (Nothing in Visual Basic).

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.One or more exceptions occurred during the evaluation of the query.

추가 정보

적용 대상