ParallelEnumerable.AsEnumerable<TSource> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a ParallelQuery<TSource> into an IEnumerable<T> to force sequential evaluation of the query.
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
The type of the elements of source
.
Parameters
- source
- ParallelQuery<TSource>
The sequence to cast as IEnumerable<T>.
Returns
IEnumerable<TSource>
The input sequence typed as IEnumerable<T>.
Exceptions
source
is a null reference (Nothing in Visual Basic).
Applies to
See also
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.