ParallelEnumerable.AsSequential<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> ^ AsSequential(System::Linq::ParallelQuery<TSource> ^ source);
public static System.Collections.Generic.IEnumerable<TSource> AsSequential<TSource>(this System.Linq.ParallelQuery<TSource> source);
static member AsSequential : System.Linq.ParallelQuery<'Source> -> seq<'Source>
<Extension()>
Public Function AsSequential(Of TSource) (source As ParallelQuery(Of TSource)) As IEnumerable(Of TSource)
Type Parameters
- TSource
The type of elements of source
.
Parameters
- source
- ParallelQuery<TSource>
A ParallelQuery<TSource> to convert to an IEnumerable<T>.
Returns
IEnumerable<TSource>
The source as an IEnumerable<T> to bind to sequential extension methods.
Exceptions
source
is a null reference (Nothing in Visual Basic).
Remarks
For more information, see Order Preservation in PLINQ and How to: Control Ordering in a PLINQ Query.
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET