ParallelEnumerable.AsEnumerable<TSource> Methode

Definitie

Converteert een ParallelQuery<TSource> naar een IEnumerable<T> om sequentiële evaluatie van de query af te dwingen.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<TSource> ^ AsEnumerable(System::Linq::ParallelQuery<TSource> ^ source);
public static System.Collections.Generic.IEnumerable<TSource> AsEnumerable<TSource>(this System.Linq.ParallelQuery<TSource> source);
static member AsEnumerable : System.Linq.ParallelQuery<'Source> -> seq<'Source>
<Extension()>
Public Function AsEnumerable(Of TSource) (source As ParallelQuery(Of TSource)) As IEnumerable(Of TSource)

Type parameters

TSource

Het type van de elementen van source.

Parameters

source
ParallelQuery<TSource>

De reeks die moet worden gegoten als IEnumerable<T>.

Retouren

IEnumerable<TSource>

De invoerreeks die is getypt als IEnumerable<T>.

Uitzonderingen

source is een null-verwijzing (niets in Visual Basic).

Van toepassing op

Zie ook