ParallelEnumerable.WithMergeOptions<TSource> Metoda

Definice

Nastaví možnosti sloučení pro tento dotaz, které určují, jak bude dotaz ukládat výstup do vyrovnávací paměti.

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 prvků source.

Parametry

source
ParallelQuery<TSource>

ParallelQuery, na kterém chcete nastavit možnost.

mergeOptions
ParallelMergeOptions

Možnosti sloučení, které se mají pro tento dotaz nastavit.

Návraty

ParallelQuery představující stejný dotaz jako zdroj, ale s registrovanými možnostmi sloučení

Výjimky

source je nulový odkaz (nic v Visual Basic).

mergeOptions není platná ParallelMergeOptions hodnota.

mergeOptions se v dotazu používá vícekrát.

Platí pro

Viz také