Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ParallelEnumerable.OfType<TResult>(ParallelQuery) Method

Definition

Namespace:
System.Linq
Assemblies:
System.Core.dll, System.Linq.Parallel.dll
Assemblies:
netstandard.dll, System.Linq.Parallel.dll
Assembly:
System.Linq.Parallel.dll
Assembly:
System.Core.dll
Assembly:
netstandard.dll
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs
Source:
ParallelEnumerable.cs

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.

Filters the elements of a ParallelQuery based on a specified type.

public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TResult> ^ OfType(System::Linq::ParallelQuery ^ source);
public static System.Linq.ParallelQuery<TResult> OfType<TResult>(this System.Linq.ParallelQuery source);
static member OfType : System.Linq.ParallelQuery -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function OfType(Of TResult) (source As ParallelQuery) As ParallelQuery(Of TResult)

Type Parameters

TResult

The type to filter the elements of the sequence on.

Parameters

source
ParallelQuery

The sequence with elements to filter.

Returns

ParallelQuery<TResult>

A sequence that contains elements from the input sequence filtered by type.

Exceptions

source is a null reference (Nothing in Visual Basic).

One or more exceptions occurred during the evaluation of the query.

Applies to

See also


Feedback

Was this page helpful?