ParallelEnumerable.Cast(Of TResult) Method (ParallelQuery)
.NET Framework (current version)
Converts the elements of a ParallelQuery to the specified type.
Assembly: System.Core (in System.Core.dll)
<ExtensionAttribute> Public Shared Function Cast(Of TResult) ( source As ParallelQuery ) As ParallelQuery(Of TResult)
Parameters
- source
-
Type:
System.Linq.ParallelQuery
The sequence that contains the elements to be converted.
Return Value
Type: System.Linq.ParallelQuery(Of TResult)A sequence that contains each element of the source sequence converted to the specified type.
Type Parameters
- TResult
The type to convert the elements of source to.
| Exception | Condition |
|---|---|
| ArgumentNullException | source is a null reference (Nothing in Visual Basic). |
| InvalidCastException | The type of the source sequence could not be converted to TResult. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: