AsUnordered(TSource) Method
From Task Parallel System.Threading
|
|
| .NET Framework Class Library |
| ParallelEnumerable..::.AsUnordered<(Of <(TSource>)>) Method |
| ParallelEnumerable Class See Also Send Feedback |
Allows an intermediate query to be treated as if no ordering is implied among the elements.
Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function AsUnordered(Of TSource) ( _ source As ParallelQuery(Of TSource) _ ) As ParallelQuery(Of TSource) |
| C# |
|---|
public static ParallelQuery<TSource> AsUnordered<TSource>( ParallelQuery<TSource> source ) |
Parameters
- source
- Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
The input sequence.
Type Parameters
- TSource
- The type of elements of source.
Return Value
The source sequence with arbitrary order.
Remarks
AsUnordered may provide
performance benefits when ordering is not required in a portion of a query.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | source is a null reference (Nothing in Visual Basic). |