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

このクエリに設定するマージ オプション。

戻り値

source と同じクエリを表すが、マージ オプションが登録されている ParallelQuery。

例外

source が null 参照 (Visual Basic では Nothing) です。

mergeOptions は正しい ParallelMergeOptions 値ではありません。

WithMergeOptions はクエリで複数回使用されます。

適用対象

こちらもご覧ください