Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on non-generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.
AsOrdered<TSource>(ParallelQuery<TSource>)Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.
AsOrdered(ParallelQuery)Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on non-generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.
public:
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery ^ AsOrdered(System::Linq::ParallelQuery ^ source);
public static System.Linq.ParallelQuery AsOrdered(this System.Linq.ParallelQuery source);
static member AsOrdered : System.Linq.ParallelQuery -> System.Linq.ParallelQuery
<Extension()>
Public Function AsOrdered (source As ParallelQuery) As ParallelQuery
Parameters Returns
The source sequence that will maintain the original ordering in the subsequent query operators.
Exceptionssource
is a null reference (Nothing in Visual Basic).
A natural tension exists between performance and preserving order in parallel processing. By default, a parallelized query behaves as if the ordering of the results is arbitrary unless AsOrdered is applied or there is an explicit OrderBy operator in the query. For more information, see Order Preservation in PLINQ.
See also AsOrdered<TSource>(ParallelQuery<TSource>)Enables treatment of a data source as if it were ordered, overriding the default of unordered. AsOrdered may only be invoked on generic sequences returned by AsParallel, ParallelEnumerable.Range, and ParallelEnumerable.Repeat.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TSource> ^ AsOrdered(System::Linq::ParallelQuery<TSource> ^ source);
public static System.Linq.ParallelQuery<TSource> AsOrdered<TSource>(this System.Linq.ParallelQuery<TSource> source);
static member AsOrdered : System.Linq.ParallelQuery<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function AsOrdered(Of TSource) (source As ParallelQuery(Of TSource)) As ParallelQuery(Of TSource)
Type Parameters
The type of elements of source
.
The source sequence that will maintain the original ordering in the subsequent query operators.
Exceptionssource
is a null reference (Nothing in Visual Basic).
source
contains no elements
-or-
source
is not one of AsParallel, ParallelEnumerable.Range, or ParallelEnumerable.Repeat.
A natural tension exists between performance and preserving order in parallel processing. By default, a parallelized query behaves as if the ordering of the results is arbitrary unless AsOrdered is applied or there is an explicit OrderBy operator in the query. For more information, see Order Preservation in PLINQ.
See alsoCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4