ParallelEnumerable.WithMergeOptions(ParallelQuery<TSource>, ParallelMergeOptions) ParallelEnumerable.WithMergeOptions(ParallelQuery<TSource>, ParallelMergeOptions) ParallelEnumerable.WithMergeOptions(ParallelQuery<TSource>, ParallelMergeOptions) ParallelEnumerable.WithMergeOptions(ParallelQuery<TSource>, ParallelMergeOptions) Method

Definição

Define as opções de mesclagem para essa consulta, que especifica como a consulta armazenará em buffer a saída.Sets the merge options for this query, which specify how the query will buffer output.

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)

Parâmetros de tipo

TSource

O tipo dos elementos de source.The type of elements of source.

Parâmetros

source
ParallelQuery<TSource> ParallelQuery<TSource> ParallelQuery<TSource> ParallelQuery<TSource>

Um ParallelQuery no qual definir a opção.A ParallelQuery on which to set the option.

mergeOptions
ParallelMergeOptions ParallelMergeOptions ParallelMergeOptions ParallelMergeOptions

As opções de mesclagem definidas para esta consulta.The merge options to set for this query.

Retornos

O ParallelQuery que representa a mesma consulta como fonte, mas com opções de mesclagem registradas.ParallelQuery representing the same query as source, but with the registered merge options.

Exceções

source é uma referência nula (Nada no Visual Basic).source is a null reference (Nothing in Visual Basic).

mergeOptions não é um valor ParallelMergeOptions válido.mergeOptions is not a valid ParallelMergeOptions value.

WithMergeOptions é usado várias vezes na consulta.WithMergeOptions is used multiple times in the query.

Aplica-se a

Veja também