ParallelEnumerable.WithMergeOptions<TSource> Metoda

Definicja

Ustawia opcje scalania dla tego zapytania, które określają sposób buforu danych wyjściowych zapytania.

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)

Parametry typu

TSource

Typ elementów elementu source.

Parametry

source
ParallelQuery<TSource>

Zapytanie równoległe, na którym należy ustawić opcję.

mergeOptions
ParallelMergeOptions

Opcje scalania do ustawienia dla tego zapytania.

Zwraca

Zapytanie równoległe reprezentujące to samo zapytanie co źródło, ale z zarejestrowanymi opcjami scalania.

Wyjątki

source jest odwołaniem o wartości null (Nic w Visual Basic).

mergeOptions jest nieprawidłową ParallelMergeOptions wartością.

WithMergeOptions jest używany wiele razy w zapytaniu.

Dotyczy

Zobacz też