ParallelEnumerable.Zip 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 조건자 함수를 사용하여 두 시퀀스를 병렬로 병합합니다.
오버로드
| Name | Description |
|---|---|
| Zip<TFirst,TSecond,TResult>(ParallelQuery<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>) |
사용되지 않음.
이 Zip 오버로드는 호출해서는 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출될 때 항상 throw됩니다 NotSupportedException . |
| 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
- 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 오버로드는 호출해서는 안 됩니다. 이 메서드는 사용되지 않는 것으로 표시되며 호출될 때 항상 throw됩니다 NotSupportedException .
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>
이 매개 변수는 사용되지 않습니다.
반품
이 오버로드는 항상 을 throw합니다 NotSupportedException.
- 특성
예외
이 메서드를 호출할 때 발생하는 예외입니다.
설명
이 오버로드는 형식의 왼쪽 데이터 원본과 형식 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
- 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>
일치하는 두 요소에서 결과 요소를 만드는 함수입니다.
반품
두 시퀀스에서 쌍으로 수행 resultSelector 하여 가져온 형식 TResult 의 요소가 있는 시퀀스입니다. 시퀀스 길이가 같지 않으면 더 짧은 시퀀스의 길이로 잘립니다.
예외
first 또는 second 또는 resultSelector null 참조(Visual Basic 없음)입니다.
전달된 토큰으로 쿼리가 취소되었습니다 WithCancellation<TSource>(ParallelQuery<TSource>, CancellationToken).
쿼리를 평가하는 동안 하나 이상의 예외가 발생했습니다.