ParallelEnumerable.WithMergeOptions<TSource> 方法

定義

設定這個查詢的合併選項,此選項會指定查詢將如何緩衝輸出。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ WithMergeOptions(System::Linq::ParallelQuery<TSource> ^ source, System::Linq::ParallelMergeOptions mergeOptions);
public static System.Linq.ParallelQuery<TSource> WithMergeOptions<TSource> (this System.Linq.ParallelQuery<TSource> source, System.Linq.ParallelMergeOptions mergeOptions);
static member WithMergeOptions : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelMergeOptions -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function WithMergeOptions(Of TSource) (source As ParallelQuery(Of TSource), mergeOptions As ParallelMergeOptions) As ParallelQuery(Of TSource)

類型參數

TSource

source 項目的類型。

參數

source
ParallelQuery<TSource>

要對其設定選項的 ParallelQuery。

mergeOptions
ParallelMergeOptions

要為這個查詢設定的合併選項。

傳回

ParallelQuery 表示與來源相同的查詢,但是具有已註冊的合併選項。

例外狀況

source 是 null 參考 (在 Visual Basic 中為 Nothing)。

mergeOptions 不是有效的 ParallelMergeOptions 值。

查詢中多次使用 WithMergeOptions

適用於

另請參閱