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 是空引用(Visual Basic 中没有任何内容)。

mergeOptions 不是有效 ParallelMergeOptions 值。

mergeOptions 在查询中多次使用。

适用于

另请参阅