ParallelEnumerable.Cast<TResult>(ParallelQuery) Methode
Definition
Konvertiert die Elemente einer ParallelQuery in den angegebenen Typ.Converts the elements of a ParallelQuery to the specified type.
public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TResult> ^ Cast(System::Linq::ParallelQuery ^ source);
public static System.Linq.ParallelQuery<TResult> Cast<TResult> (this System.Linq.ParallelQuery source);
static member Cast : System.Linq.ParallelQuery -> System.Linq.ParallelQuery<'Result>
<Extension()>
Public Function Cast(Of TResult) (source As ParallelQuery) As ParallelQuery(Of TResult)
Typparameter
- TResult
Der Typ, in den die Elemente von source
konvertiert werden sollen.The type to convert the elements of source
to.
Parameter
- source
- ParallelQuery
Die Sequenz, die die zu konvertierenden Elemente enthält.The sequence that contains the elements to be converted.
Gibt zurück
- ParallelQuery<TResult>
Eine Sequenz, die jedes in den angegebenen Typ konvertierte Element der Quellsequenz enthält.A sequence that contains each element of the source sequence converted to the specified type.
Ausnahmen
source
ist ein NULL-Verweis (Nothing in Visual Basic).source
is a null reference (Nothing in Visual Basic).
Der Typ der Quellsequenz konnte nicht in TResult
konvertiert werden.The type of the source sequence could not be converted to TResult
.