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 为 null 引用(在 Visual Basic 中为 Nothing)。
              mergeOptions 不是有效的 ParallelMergeOptions 值。
在该查询中,多次使用 WithMergeOptions。