ParallelEnumerable.Zip 메서드

정의

지정된 조건자 함수를 사용하여 두 시퀀스를 병렬로 병합합니다.

오버로드

Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)
사용되지 않음.

이 Zip 오버로드는 호출되면 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출되면 항상 NotSupportedException을 throw합니다.

Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, ParallelQuery<TSecond>, Func<TFirst,TSecond,TResult>)

지정된 조건자 함수를 사용하여 두 시퀀스를 병렬로 병합합니다.

Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)

Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

주의

The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.

이 Zip 오버로드는 호출되면 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출되면 항상 NotSupportedException을 throw합니다.

public:
generic <typename TFirst, typename TSecond, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ Zip(System::Linq::ParallelQuery<TFirst> ^ first, System::Collections::Generic::IEnumerable<TSecond> ^ second, Func<TFirst, TSecond, TResult> ^ resultSelector);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TResult> Zip<TFirst,TSecond,TResult> (this System.Linq.ParallelQuery<TFirst> first, System.Collections.Generic.IEnumerable<TSecond> second, Func<TFirst,TSecond,TResult> resultSelector);
[<System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")>]
static member Zip : System.Linq.ParallelQuery<'First> * seq<'Second> * Func<'First, 'Second, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Zip(Of TFirst, TSecond, TResult) (first As ParallelQuery(Of TFirst), second As IEnumerable(Of TSecond), resultSelector As Func(Of TFirst, TSecond, TResult)) As ParallelQuery(Of TResult)

형식 매개 변수

TFirst

이 형식 매개 변수는 사용되지 않습니다.

TSecond

이 형식 매개 변수는 사용되지 않습니다.

TResult

이 형식 매개 변수는 사용되지 않습니다.

매개 변수

first
ParallelQuery<TFirst>

이 매개 변수는 사용되지 않습니다.

second
IEnumerable<TSecond>

이 매개 변수는 사용되지 않습니다.

resultSelector
Func<TFirst,TSecond,TResult>

이 매개 변수는 사용되지 않습니다.

반환

ParallelQuery<TResult>

이 오버로드는 항상 NotSupportedException을 throw합니다.

특성

예외

이 메서드가 호출될 때 발생하는 예외입니다.

설명

이 오버로드는 형식의 왼쪽 데이터 원본과 형식 ParallelQuery<TSource> 의 올바른 데이터 원본이 있는 Zip의 IEnumerable<T>사용을 허용하지 않습니다. 그렇지 않으면 Zip 연산자가 병렬 구현에 바인딩된 것처럼 보이지만 실제로는 순차적 구현에 바인딩됩니다.

추가 정보

적용 대상

Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, ParallelQuery<TSecond>, Func<TFirst,TSecond,TResult>)

Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

지정된 조건자 함수를 사용하여 두 시퀀스를 병렬로 병합합니다.

public:
generic <typename TFirst, typename TSecond, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ Zip(System::Linq::ParallelQuery<TFirst> ^ first, System::Linq::ParallelQuery<TSecond> ^ second, Func<TFirst, TSecond, TResult> ^ resultSelector);
public static System.Linq.ParallelQuery<TResult> Zip<TFirst,TSecond,TResult> (this System.Linq.ParallelQuery<TFirst> first, System.Linq.ParallelQuery<TSecond> second, Func<TFirst,TSecond,TResult> resultSelector);
static member Zip : System.Linq.ParallelQuery<'First> * System.Linq.ParallelQuery<'Second> * Func<'First, 'Second, 'Result> -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Zip(Of TFirst, TSecond, TResult) (first As ParallelQuery(Of TFirst), second As ParallelQuery(Of TSecond), resultSelector As Func(Of TFirst, TSecond, TResult)) As ParallelQuery(Of TResult)

형식 매개 변수

TFirst

첫 번째 시퀀스 요소의 형식입니다.

TSecond

두 번째 시퀀스 요소의 형식입니다.

TResult

반환 요소의 형식입니다.

매개 변수

first
ParallelQuery<TFirst>

zip을 수행할 첫 번째 시퀀스입니다.

second
ParallelQuery<TSecond>

zip을 수행할 두 번째 시퀀스입니다.

resultSelector
Func<TFirst,TSecond,TResult>

일치하는 두 요소를 통해 결과 요소를 만들 함수입니다.

반환

ParallelQuery<TResult>

두 시퀀스에 대해 TResult pairwise를 수행하여 가져온 resultSelector 형식 요소가 들어 있는 시퀀스입니다. 시퀀스 길이가 같지 않으면 짧은 시퀀스 길이에 맞춰 긴 시퀀스를 자릅니다.

예외

first 또는 second 또는 resultSelector는 null 참조(Visual Basic에서는 Nothing)입니다.

쿼리를 확인하는 동안 하나 이상의 예외가 발생했습니다.

적용 대상