ParallelEnumerable.Concat 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
串連兩個平行序列。
多載
| 名稱 | Description |
|---|---|
| Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) |
已淘汰.
不應該呼叫此 Concat 多載。 此方法標記為過時,且每次呼叫時都會拋 NotSupportedException 出。 |
| Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) |
串連兩個平行序列。 |
Concat<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
警告
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>.
不應該呼叫此 Concat 多載。 此方法標記為過時,且每次呼叫時都會拋 NotSupportedException 出。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TSource> ^ Concat(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second);
[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<TSource> Concat<TSource>(this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second);
[<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 Concat : System.Linq.ParallelQuery<'Source> * seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Concat(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)
類型參數
- TSource
此型別參數未被使用。
參數
- first
- ParallelQuery<TSource>
不使用這個參數。
- second
- IEnumerable<TSource>
不使用這個參數。
傳回
這種過載總是拋出一個 NotSupportedException。
- 屬性
例外狀況
當此方法被呼叫時,會發生例外。
備註
此過載存在是為了阻止 Concat 在左資料來源 與 ParallelQuery<TSource> 右資料來源 IEnumerable<T>類型 下使用 。 否則,Concat 運算子看似綁定於平行實作,但實際上會綁定於序列實作。
另請參閱
適用於
Concat<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)
串連兩個平行序列。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TSource> ^ Concat(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second);
public static System.Linq.ParallelQuery<TSource> Concat<TSource>(this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second);
static member Concat : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Concat(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource)) As ParallelQuery(Of TSource)
類型參數
- TSource
輸入序列元素的類型。
參數
- first
- ParallelQuery<TSource>
第一個串接的序列。
- second
- ParallelQuery<TSource>
該序列將與第一個序列連接起來。
傳回
包含兩個輸入序列串接元素的序列。
例外狀況
first 或 second 是空參考(Nothing in Visual Basic)。