ParallelEnumerable.WithMergeOptions<TSource> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置此查询的合并选项,该选项指定查询将如何缓冲输出。
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 在查询中多次使用。